View previous topic :: View next topic |
Author |
Message |
Berkz Apprentice
Joined: 26 Aug 2002 Posts: 205 Location: Iceland
|
Posted: Wed Feb 26, 2003 7:01 pm Post subject: running portage as normal user? |
|
|
how can i do this?
Regards, Berkz _________________ ______________
Regards, Berkz |
|
Back to top |
|
|
AlterEgo Veteran
Joined: 25 Apr 2002 Posts: 1619
|
Posted: Wed Feb 26, 2003 7:37 pm Post subject: |
|
|
From portage 2.0.47:
* NOTICE: The wheel group requirement for non-root users has been changed to
* group portage. Group portage must be a valid group for user to use portage.
[...]
* The 2.0.47 line of portages contains an optional userpriv mode that
* enables portage to drop root privleges and run as a normal user. It is
* enabled via FEATURES by adding userpriv. |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Feb 27, 2003 8:56 am Post subject: |
|
|
That passage has been misinterpreted a bit. It does not mean that any new portage operations can be done by non-root users. In the past, non-root users could do "emerge -s", "emerge -S", and "emerge -p", but they had to be in the wheel group. Now (meaning Portage >=2.0.47) they can do these things, but they have to be in the portage group instead. To actually install software using emerge, you still must run emerge as root. What userpriv does is internally drop permissions to the portage user to do the compilation, but the live merging onto your filesystem still must be done by root, and therefore emerge must be run as root. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
modal Apprentice
Joined: 02 Oct 2002 Posts: 277
|
Posted: Thu Feb 27, 2003 8:11 pm Post subject: |
|
|
Sometimes I wish that a normal user could compile as well, but for now I just use or |
|
Back to top |
|
|
andyfaeglasgow Apprentice
Joined: 09 Sep 2004 Posts: 170
|
Posted: Sun Aug 07, 2005 4:46 pm Post subject: |
|
|
I tried to do this. (Starting as root)
# groups andy
wheel cron audio cdrom games
# gpasswd -a ac portage
# groups andy
wheel cron audio cdrom games portage
# su - andy
# emerge -s some-package
Searching...
[ Results for search key : some-package ]
[ Applications found : 0 ]
# exit #back to root
# exit #back to andy
$ groups andy
wheel cron audio cdrom games portage
$ emerge -s some-package
*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.
Is this a bug with emerge. How come it thinks I'm not in the portage group. Why does it work ok if I've su'd to the user through root's account? |
|
Back to top |
|
|
tercel Retired Dev
Joined: 17 Apr 2005 Posts: 2 Location: Rochester NY
|
Posted: Tue Aug 09, 2005 12:24 am Post subject: |
|
|
It works ok after an su to your user accound because su dumps you into a new shell. the old one you had before adding youself to the portage group will not work. you will need to log out and back in again for the group change to take affect. _________________ tercel on irc.freenode.net |
|
Back to top |
|
|
|