[sudo-users] Other ways to check for sudo access
klaus.steden at thomson.net
Wed Feb 13 19:01:20 EST 2008
What about writing something using Expect? It's a pretty common tool for
"interactive" processes, like password challenges and so forth.
On 2/13/08 2:55 PM, "Daniel Feren" <daniel_james_404 at yahoo.com>did etch on
> Hi all!
> I have an application that needs to determine whether sudo has been setup.
> catch 22 is that sudo needs to be setup for anyone to do "sudo -l" to
> 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
> 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?
> Never miss a thing. Make Yahoo your home page.
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
More information about the sudo-users