Sudoers list?

Daniel Carrera daniel.carrera at zmsl.com
Tue Apr 4 19:39:31 UTC 2006


Matthew R. Dempsky 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.

The problem with that is that you need sudo access to run it. If I knew 
I could run that command I would already have the information I need :P

Thanks for the help though.

Best,
Daniel.
-- 
      /\/`) http://opendocumentfellowship.org
     /\/_/
    /\/_/   A life? Sounds great!
    \/_/    Do you know where I could download one?
    /




More information about the ubuntu-users mailing list