[sudo-users] Other ways to check for sudo access
Klaus Steden
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.
Klaus
On 2/13/08 2:55 PM, "Daniel Feren" <daniel_james_404 at yahoo.com>did etch on
stone tablets:
> 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
>
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
More information about the sudo-users
mailing list