Sudoers list?
Matt Palmer
mpalmer at hezmatt.org
Wed Apr 5 07:24:33 UTC 2006
On Tue, Apr 04, 2006 at 11:33:55PM +0200, Dennis Kaarsemaker wrote:
> On di, 2006-04-04 at 20:00 +0100, Daniel Carrera wrote:
> > I'm writing a script. How can I find out, from the script, if the
> > current user is in the sudoers list?
>
> On Ubuntu systems you can check whether the user is in the admin group.
That's far from a complete solution -- I might grant a specific privileges
in /etc/sudoers because I want to use some of the many features that sudo
provides to manage the granting of privileges (and ain't there a *lot* of
them!)
- Matt
More information about the ubuntu-users
mailing list