run as any user *except* root

Todd C. Miller Todd.Miller at
Tue Jan 20 10:28:07 EST 2004

In message <400CE8F3.3000805 at>
	so spake Georges kesseler (kesseler):

> I  tried this but it does not work (version 1.6.6)
> myuser mymachine = (! root) /usr/bin/pwd
> mymachine(myuser): sudo -l
> (!root) /usr/bin/pwd

The '!' is interpreted literally as part of the username (nothing
says you can't have a username that starts with '!').  I believe
you want something like this:

myuser mymachine = (ALL) /usr/bin/pwd, (root) !/usr/bin/pwd,
                   (#0) !/usr/bin/pwd

 - todd

More information about the sudo-users mailing list