Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
running portage as normal user?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Berkz
Apprentice
Apprentice


Joined: 26 Aug 2002
Posts: 205
Location: Iceland

PostPosted: Wed Feb 26, 2003 7:01 pm    Post subject: running portage as normal user? Reply with quote

how can i do this?

Regards, Berkz
_________________
______________

Regards, Berkz
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Wed Feb 26, 2003 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Feb 27, 2003 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
modal
Apprentice
Apprentice


Joined: 02 Oct 2002
Posts: 277

PostPosted: Thu Feb 27, 2003 8:11 pm    Post subject: Reply with quote

Sometimes I wish that a normal user could compile as well, but for now I just use
Code:
sudo command
or
Code:
su -
Back to top
View user's profile Send private message
andyfaeglasgow
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 170

PostPosted: Sun Aug 07, 2005 4:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
tercel
Retired Dev
Retired Dev


Joined: 17 Apr 2005
Posts: 2
Location: Rochester NY

PostPosted: Tue Aug 09, 2005 12:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum