[NTLUG:Discuss] Using SUDO

Bug Hunter bughuntr at one.ctelcom.net
Sat Dec 29 10:52:32 CST 2001


  once you install it, there is a /etc/sudoers file which must be
modified.  The easiest thing to do is to use visudo (which checks the
sudoers file for correctness before  you write it, but requires you to
understand vi unless you override the default editor).

add a line:

joeuser = ALL (ALL)

  or something like that  (look at the "root" user in the sudoers file for
an example).  You can use the "NOPASSWD" feature if you wish.

  you can then, as joe user, do

sudo rm -rf /

  It would then ask you for your password, and proceed to destroy your
hard disk, no questions asked.

;)


On Sat, 29 Dec 2001, Jason Ferguson wrote:

> Can anyone give me or point me to a quick reference on using sudo? I've
> never learned how to use it, and Im sick of having to su to root to use
> apt-get to update my system.
> 
> Jason





More information about the Discuss mailing list