You are not logged in.

#1 2018-08-13 23:37:13

wildpjah
Member
Registered: 2018-08-13
Posts: 3

can't makepkg as nobody

Alrighty so I'm trying to get an aur manager, in this case aurman. I've followed the steps to get it from the aur until I realized I couldn't make the package as root which makes sense. So I followed the guide linked on the wiki to do it from a nobody user. I thought I followed it all well enough until I used "sudo -u nobody makepkg". I immediately got the error
"Failed to create the directory $BUILDDIR (/home/build/aurman).
Aborting..."
The only mention of this I could find accross the internet told me that the error is coming from here: https://git.archlinux.org/pacman.git/tr … v5.1.0#n88

only knowing where it comes from didn't help me so I'm hoping one of the nice people here can!

Offline

#2 2018-08-13 23:47:07

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: can't makepkg as nobody

Welcome to the arch linux forums.  What is the output of

stat /home/build
stat /home/build/aurman

Edit:
you are aware you can not run aurman as root?

Last edited by loqs (2018-08-13 23:52:41)

Offline

#3 2018-08-13 23:51:14

wildpjah
Member
Registered: 2018-08-13
Posts: 3

Re: can't makepkg as nobody

loqs wrote:

Welcome to the arch linux forums.  What is the output of

stat /home/build
stat /home/build/aurman

thanks for the welcome!

 
stat /home/build
  File: /home/build
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 803h/2051d	Inode: 262938      Links: 4
Access: (2666/drw-rwSrw-)  Uid: (    0/    root)   Gid: (65534/  nobody)
Access: 2018-08-13 17:15:58.996828605 +0000
Modify: 2018-08-13 17:16:11.106828509 +0000
Change: 2018-08-13 17:16:11.106828509 +0000
 Birth: -

stat /home/build/aurman
  File: /home/build/aurman
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 803h/2051d	Inode: 263428      Links: 3
Access: (2770/drwxrws---)  Uid: (    0/    root)   Gid: (65534/  nobody)
Access: 2018-08-13 18:08:10.183469106 +0000
Modify: 2018-08-13 17:16:12.470161831 +0000
Change: 2018-08-13 17:16:12.470161831 +0000
 Birth: -

Offline

#4 2018-08-14 01:28:15

wildpjah
Member
Registered: 2018-08-13
Posts: 3

Re: can't makepkg as nobody

loqs wrote:

you are aware you can not run aurman as root?

Yes I thought that's why I was trying to use nobody. Am I missing something?

Offline

#5 2018-08-14 03:08:15

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: can't makepkg as nobody

I would highly recommend that you have a basic understanding of what yaourt/aurman/whatever is doing before trying to use said helper. Any (all) of the following links in this sticky should help: https://bbs.archlinux.org/viewtopic.php?id=60543. When you understand how building packages works, you'll ultimately understand how to use a helper correctly. That's why they are called AUR helpers. They are not a substitute for the knowledge and experience that you gain from first doing things manually. Good luck! smile


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#6 2018-08-14 03:26:46

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: can't makepkg as nobody

Why haven't you created a non-root user?  Are you going to?  Even if you didn't plan to for all the countless other reasons you should, the present issue highlights one more: rather than trying to jump through hoops to use "nobody" user, just use a regular non-root user and be done with it.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2018-08-14 09:59:26

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: can't makepkg as nobody

/home/build needs to be 2770 not 2666 although the permissions for other are not important.

Offline

Board footer

Powered by FluxBB