Sudoers list?

Matthew R. Dempsky mrd at alkemio.org
Tue Apr 4 19:25:57 UTC 2006


On Tue, Apr 04, 2006 at 08:00:27PM +0100, Daniel Carrera wrote:
> I'm writing a script. How can I find out, from the script, if the 
> current user is in the sudoers list?

This may be of help, from sudo(1):

        -l  The -l (list) option will list out the allowed (and 
            forbidden) commands for the user on the current host.




More information about the ubuntu-users mailing list