HOWTO - su, sudo and gentoo.

linux Add comments
italiano

By default, in Gentoo, su and sudo commands don’t works for normal user. Let’s see how to enable them

SU command

If you try to use this command, you can read this error:

shaka@gentoo /home/shaka $ su
Password:
su: Permission denied
Sorry.

login as root and digit the following command (substitute username with your user)

gentoo # gpasswd -a username wheel

SUDO command

gentoo # emerge -tav sudo

gentoo # nano /etc/sudoers

in this file you have to insert a line for each user which all commands that you would allow users hosts = (run-as) commands
where
users: username,
hosts: use ALL,
commands: all commands that you would allow to a user with the absolute path (es: /usr/bin/emerge, /usr/bin/ebuild)

Some usefull link about sudo config

http://www.gentoo.org/doc/en/sudo-guide.xml
http://gentoo-wiki.com/Sudo_config

, , ,


3 Responses to “HOWTO - su, sudo and gentoo.”

  1. Michele Says:

    A dire il vero, se si segue l’handbook l’utente te lo fa creare nel gruppo wheel..

  2. telperion Says:

    sudo in gentoo con programmi grafici

    * A note on gksudo: It actually runs sudo to get it’s work done
    * However, by default, Gentoo’s sudo wipes your envinronment.
    * This means that gksudo will fail to run any X-based programs.
    * You need to either add yourself to wheel and uncomment this line
    * in your /etc/sudoers:
    * Defaults:%wheel !env_reset
    * Or remove the env_reset line entirely. This can cause security
    * problems; if you don’t trust your users, don’t do this, use gksu
    * instead.

    Per usare sudo con programmi grafici
    tipo sudo gedit

  3. acido Says:

    @Michele: grazie dell’appunto :) io ho seguito la Quick Install Guide e li non era segnalato.

    @telperion: grazie per l’howto! la integro appena riesco con il post ;)

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Collegati