You are not logged in.

#1 2015-01-06 14:07:56

l0vot
Member
Registered: 2011-08-26
Posts: 117

The makepkg --asroot flag appears to have been removed

The makepkg --asroot flag appears to have been removed, I need to run makepkg as root, or at least root privileges in order to use the AUR without constantly switching users. I understand some people prefer to avoid the use of root privileges if they can help it, but people should be free to choose. How would I get makepkg to run as root like it used to? If not I will be forced to use make instead, which is more dangerous and does not use pacman to make sure packages install/uninstall/upgrade cleanly.

Offline

#2 2015-01-06 14:12:35

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,163
Website

Re: The makepkg --asroot flag appears to have been removed

There are several threads which may be related, because of yaourt if you look:

https://bbs.archlinux.org/viewtopic.php?id=191793
https://bbs.archlinux.org/viewtopic.php?id=191873


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#3 2015-01-06 14:15:16

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

Re: The makepkg --asroot flag appears to have been removed

l0vot wrote:

I understand some people prefer to avoid the use of root privileges if they can help it, but people should be free to choose. How would I get makepkg to run as root like it used to?

I agree.  I've also received emails from a veteran archlinux user curious about the same thing as he runs a root-only system.

I have no current input, but as I'm sure some might find this a bit controversial I wanted to put a moderator blessing on (part of) this topic.  With the caveat that new users should not take it as good advise to do so, some knowledgeable linux users opt to run root-only, and if we can help them find a way to user their system the way they want, that would be worth a forum thread.  But lets please keep any discussion of whether running everything as root is wise out of this thread.


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

Offline

#4 2015-01-06 14:29:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,598

Re: The makepkg --asroot flag appears to have been removed

l0vot wrote:

The makepkg --asroot flag appears to have been removed, I need to run makepkg as root, or at least root privileges in order to use the AUR without constantly switching users.

There's no "need" to run makepkg as root. At worst you can just su to nobody and build.

l0vot wrote:

I understand some people prefer to avoid the use of root privileges if they can help it, but people should be free to choose.

The authors disagree. The option was only there because fakeroot used to cause problems occasionally, and it doesn't now. With that issue out of the way, there's little sense in keeping the extra code complexity for the option when there's no real use case.

l0vot wrote:

How would I get makepkg to run as root like it used to?

You can patch it back in, but that is, of course, totally unsupported.

l0vot wrote:

If not I will be forced to use make instead, which is more dangerous and does not use pacman to make sure packages install/uninstall/upgrade cleanly.

No, you will not be forced to do so, it would only be stubbornness that would force you there.

Offline

#5 2015-01-06 14:36:56

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: The makepkg --asroot flag appears to have been removed

Scimmia wrote:

There's no "need" to run makepkg as root. At worst you can just su to nobody and build.

That's pretty cool! I had no idea the "nobody" user could be used like that. smile

Offline

#6 2015-01-06 14:43:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,598

Re: The makepkg --asroot flag appears to have been removed

drcouzelis wrote:
Scimmia wrote:

There's no "need" to run makepkg as root. At worst you can just su to nobody and build.

That's pretty cool! I had no idea the "nobody" user could be used like that. smile

You'd have to set it up as login isn't allowed by default on that account, but it lets you reuse an existing user so it doesn't even clutter up your system.

Offline

#7 2015-01-06 15:22:28

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: The makepkg --asroot flag appears to have been removed

alias makepkg="sudo -u nobody makepkg"

Edit: fix command.

Offline

#8 2015-01-06 15:23:45

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: The makepkg --asroot flag appears to have been removed

l0vot wrote:

The makepkg --asroot flag appears to have been removed, I need to run makepkg as root, or at least root privileges in order to use the AUR without constantly switching users. I understand some people prefer to avoid the use of root privileges if they can help it, but people should be free to choose. How would I get makepkg to run as root like it used to? If not I will be forced to use make instead, which is more dangerous and does not use pacman to make sure packages install/uninstall/upgrade cleanly.

Just set up sudo and use makepkg -i >_>


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2015-01-06 16:14:07

l0vot
Member
Registered: 2011-08-26
Posts: 117

Re: The makepkg --asroot flag appears to have been removed

I installed fakeroot and sued in as a different user to use aurget, while this works having to log in as someone else just to do things that require root privileges anyways is ridiculous. Everyone should have the choice to run everything as root, no matter how unsafe the devs might think it is. I'm not trying to convince anyone that running as root is a good idea, just that it should always be an option.

Offline

#10 2015-01-06 16:54:23

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,598

Re: The makepkg --asroot flag appears to have been removed

Offline

#11 2015-01-06 17:34:20

l0vot
Member
Registered: 2011-08-26
Posts: 117

Re: The makepkg --asroot flag appears to have been removed

Scimmia wrote:

That is an example of the devs actually fixing a problem that affects all of the users.

This is an example of the devs going out of their way to annoy people who run as root. For those who avoid invoking root privileges the removal of the --asroot flag, or the need for the --asroot flag to run makepkg as root to begin with has no effect. For those that avoid using root privileges there was never a problem. The modification wasn't for saftey reasons, it was to irritate the root users, just like when any other software dev adds a piece of code to their program just to annoy root users and force their beliefs on how a system should be ran on everyone else. The root users know the risks and run as root anyways. Stop trying to force safety on people who have willingly exchanged safety for power.

Offline

#12 2015-01-06 17:53:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: The makepkg --asroot flag appears to have been removed

Newsflash: it isn't all about you. No-one is "going out of their way to annoy people who run as root."*

Please stop your trolling: https://wiki.archlinux.org/index.php/Fo … o_Trolling


Closing



* Except me, obviously.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB