View previous topic :: View next topic |
Author |
Message |
lakicsv n00b
Joined: 19 Apr 2002 Posts: 51 Location: UK, Surrey
|
Posted: Thu Oct 07, 2004 6:31 am Post subject: emerging as a non-privileged user |
|
|
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 |
|
|
Hauser l33t
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
|
Back to top |
|
|
lakicsv n00b
Joined: 19 Apr 2002 Posts: 51 Location: UK, Surrey
|
Posted: Thu Oct 07, 2004 5:36 pm Post subject: |
|
|
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 |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9530 Location: beyond the rim
|
Posted: Thu Oct 07, 2004 7:30 pm Post subject: |
|
|
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 |
|
|
lakicsv n00b
Joined: 19 Apr 2002 Posts: 51 Location: UK, Surrey
|
Posted: Fri Oct 08, 2004 2:15 am Post subject: |
|
|
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 |
|
|
Hauser l33t
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
Posted: Fri Oct 08, 2004 2:39 am Post subject: |
|
|
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 |
|
|
lakicsv n00b
Joined: 19 Apr 2002 Posts: 51 Location: UK, Surrey
|
Posted: Fri Oct 08, 2004 6:19 pm Post subject: |
|
|
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 |
|
|
|