John Dangler wrote:

> I’m looking into setting up sudo on my latest test box
> (stage3/genkernel 2.6.12—r9)
>
> In portage, sudo says “Allows users or groups to run commands as other
> users”. The latest stable shows *1.6.8_p9 (although the one before is
> it unstable, and the one before that is stable) hmm…*
>
> Anyway, the use flags show “pam skey offensive ldap”
>
> Pam, I get… offensive and ldap – probably won’t use these. But skey…
>
> skey says it’s a “Linux Port of OpenBSD Single-key Password System”
> That’s all the info I’ve been able to find out so far…
>
I'm fairly new to Gentoo, so am hardly an authority. However, I do have
sudo working. This is how I did it.

First, I did emerge --search sudo. Of course this returns the "packages"
that have "sudo" in them. A friend told me to do 'emerge -av <package
name>' This lists the available "use flags" for whatever package you
name, for instance 'emerge -av sudo', which will list the available use
flags for sudo.

You also need to install vim because you have to edit the /etc/sudoers
file in order to add a user name. If you display the sudoers file ('cat
sudoers') it will tell you that the file *must* be edited by the visudo
command as root.

In the sudoers file, below the line that reads:
root ALL=(ALL) ALL

you enter the information for the user.

I have 'colleen' set up as a user on my system, so it inserted the line:

colleen ALL=(ALL) ALL

Someone might be able to give you better instructions related to
security, but my system is stand alone and ergo colleen and root have
the same privileges.

Hope this helps.

Regards,

Colleen
-- 
[email protected] mailing list

Reply via email to