Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerging as a non-privileged 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
lakicsv
n00b
n00b


Joined: 19 Apr 2002
Posts: 51
Location: UK, Surrey

PostPosted: Thu Oct 07, 2004 6:31 am    Post subject: emerging as a non-privileged user Reply with quote

I was very happy to find that it is possible now to emerge programs as a non-root user.

So I was quick to add myself to the /etc/groups file under the group portage.

Unfortunately, I am still not be able to do emerge as a user. Yes, I logged off, and on again, I even rebooted, nothing.

What else I have to do to enable this feature? :?:
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Thu Oct 07, 2004 8:47 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=202390&highlight=group
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
lakicsv
n00b
n00b


Joined: 19 Apr 2002
Posts: 51
Location: UK, Surrey

PostPosted: Thu Oct 07, 2004 5:36 pm    Post subject: Reply with quote

Yes I do compile everything... This seems to be the most comfortable way to install packages in gentoo...

So going back to my question:

Is it enough to just add a non-privileged user to /etc/groups or I need to do something else as well?

TIA: Viktor
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9530
Location: beyond the rim

PostPosted: Thu Oct 07, 2004 7:30 pm    Post subject: Reply with quote

You can't emerge as non-root user. The portage group allows you to use the search and pretend functions, nothing more.
Back to top
View user's profile Send private message
lakicsv
n00b
n00b


Joined: 19 Apr 2002
Posts: 51
Location: UK, Surrey

PostPosted: Fri Oct 08, 2004 2:15 am    Post subject: Reply with quote

Thanks, at least I know this now...

Genone wrote:
You can't emerge as non-root user. The portage group allows you to use the search and pretend functions, nothing more.
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Fri Oct 08, 2004 2:39 am    Post subject: Reply with quote

lakicsv wrote:
Is it enough to just add a non-privileged user to /etc/groups or I need to do something else as well?

TIA: Viktor

If you really want this, you can use sudo by adding these lines to /etc/sudoers:
Code:
username machinename=NOPASSWD: /usr/bin/emerge$@
username machinename=NOPASSWD: /usr/bin/ebuild$@

Of course you may need to emerge sudo first.
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
lakicsv
n00b
n00b


Joined: 19 Apr 2002
Posts: 51
Location: UK, Surrey

PostPosted: Fri Oct 08, 2004 6:19 pm    Post subject: Reply with quote

Thanks a lot! this is waht I was looking for!

Hauser wrote:
lakicsv wrote:
Is it enough to just add a non-privileged user to /etc/groups or I need to do something else as well?

TIA: Viktor

If you really want this, you can use sudo by adding these lines to /etc/sudoers:
Code:
username machinename=NOPASSWD: /usr/bin/emerge$@
username machinename=NOPASSWD: /usr/bin/ebuild$@

Of course you may need to emerge sudo first.
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