-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tim hall wrote:
> On Sat, 2009-10-31 at 12:51 +0100, rosea grammostola wrote:
>> Hi,
>>
>> I like to enable the passwd for sudo. How should I do that?
> 
> sudo passwd
> 
I think he wants to make it so that sudo requires a user's password for
the first time.

Basically we need to edit the sudoers file.  You are not supposed to
edit it directly.  By default it uses vim keybindings.  This is fine for
me but you may want to look at the man pages for visudo if you prefer a
different syntax.

sudo visudo

Then edit the line that looks like this (it should be the last one):
%admin ALL=NOPASSWD : ALL

remove the "NOPASSWD" part.

Once you exit you should be prompted for your password.  I believe that
the password is cached for 15 minutes.

Hth,
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrtkEAACgkQwRXgH3rKGfOk7gCeItDwypRex1ZgjP4OS1sFy3hr
ao0Anjdpz3kbUNdTq3c6mgNrtNRjwnJW
=21SP
-----END PGP SIGNATURE-----
_______________________________________________
64studio-users mailing list
[email protected]
http://lists.64studio.com/mailman/listinfo/64studio-users

Reply via email to