I recently found while reading sudoers(5) that it is possible to
change the prompt that sudo issues.  After much Googling and other
struggle, I figured out the proper syntax.  The line should be placed
after Defaults specification.

# Defaults specification
Defaults        passprompt = "%u's Password: "

makes the prompt look like, e.g.

[EMAIL PROTECTED] ~]$ sudo -k
[EMAIL PROTECTED] ~]$ sudo /usr/sbin/visudo
cdl's Password:

The invocation of "sudo -k" kills the timeout, so you can test things
like this without having to wait 5 minutes.

   carl
--
   carl lowenstein         marine physical lab     u.c. san diego
                                                [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to