Sudo for dummies?

Dustin Reiner dpreiner at gmail.com
Tue Jun 7 16:49:56 EDT 2005


run visudo as root, and add the following below the line that reads

root ALL=(ALL) ALL

<username> ALL=(ALL) ALL

where <username> is the user you want to have sudo access.  This
basically says allow <username> to run all commands from all machines
as all users (or in other words, do anything).  Then to run any
command, just use sudo before it.  I.E.
sudo service httpd start 

This gives your user the capability to do anything as root without
actually logging in as root.

-Dustin 

On 6/7/05, Joe <josephj at main.nc.us> wrote:
> Hi.  I have a few priviledged commands I would like to be able to run as
> a user without using su.
> For the most part, I could put them all (or symlinks to them) in one
> protected directory.
> 
> I just read the man pages for sudo, sudoers, visudo and got overwhelmed
> by all the options.
> 
> My machine is basically single user (me and root) and is relatively
> physically secure.  I'm still running Mandrake 9.1.
> 
> Can someone show me how to set sudo up  in a minimal fashion?
> It looks like it's not that complicated once you narrow it down to just
> a few things to do.
> 
> TIA
> 
> Joe
> 
> --
> "If we treat people as they are, we make them worse. If we treat people as they ought to be, we help them become what they're capable of becoming." -- Goethe
> 
> 
>




More information about the nflug mailing list