I like to enable the passwd for sudo. How should I do that?
Thanks in advance,
_______________________________________________
64studio-users mailing list
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
10-31-2009, 11:48 AM
tim hall
add passwd to sudo
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
cheers,
tim
/|
_______________________________________________
64studio-users mailing list
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users
11-01-2009, 12:42 PM
Gustin Johnson
add passwd to sudo
-----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/
> I believe that the password is cached for 15 minutes.
>
"Decrease the cache timeout:
You can set sudo to expire its password cache sooner than the default 15
minutes, by setting the timestamp_timeout option to something else in
/etc/sudoers." (http://www.wlug.org.nz/SudoHowto)
If I remember correctly there is at least a way to handle an "auto-"exit
for "su" by the bashrc, I guess http://www.wlug.org.nz/SudoHowto has
some hints how to enable this for sudo too. I didn't read it myself.
_______________________________________________
64studio-users mailing list
64studio-users@lists.64studio.com
http://lists.64studio.com/mailman/listinfo/64studio-users