[sudo-users] Other ways to check for sudo access
daniel_james_404 at yahoo.com
Wed Feb 13 19:26:33 EST 2008
I had never heard of Expect, it seems useful. All in all, our application I
think would prefer a simpler approach that doesn't require an additional
program/utility not to mention the need to store the required password(s). I
could see how it could work. Thank you for sharing your idea, I'll keep that
in mind for the future.
--- Klaus Steden <klaus.steden at thomson.net> wrote:
> 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
> 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
> > 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
> > 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,
> > 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
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
More information about the sudo-users