[sudo-users] Other ways to check for sudo access

Daniel Feren daniel_james_404 at yahoo.com
Wed Feb 13 17:55:15 EST 2008


Hi all!

I have an application that needs to determine whether sudo has been setup.  The
catch 22 is that sudo needs to be setup for anyone to do "sudo -l" to determine
whether sudo was setup.  I need to get an indication in stdout or stderr
whether there is sudo setup/access or not.  As you know, the default settings
require a tty and a password challenge, both of which would block my
application fron running.  I've looked in the archives, but didn't find any way
around this catch 22.  

Does anyone know a way to determine whether their sudo has been setup without
being prompted for a password?  or have any ideas on how to detect a
non-sudo-configured situation?  I'm guessing this is a security feature, what
do you think?

Regards,
Daniel,


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs




More information about the sudo-users mailing list