[sudo-workers] Sudo and gnome-menus

Todd C. Miller Todd.Miller at courtesan.com
Wed Jul 27 21:06:10 EDT 2005

The current sudo sources in cvs allow something similar to this
via the -l option.  E.g.

    xerxes [~] % sudo -l shutdown

If the user is not allowed to run the command noting is printed.
The exit value is 0 if allowed and 1 if not allowed.

However, this does still require a password for sudo -l unless
the sudoers file contains a line like:

    Defaults listpw=never

I'm hesitant to relax the password rules since it could cause
problems when you don't have good physical security (open labs,

 - todd

More information about the sudo-workers mailing list