Re: sudoRunAsUser negation

"Todd C. Miller" <[email protected]>
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
There are various ways you might use this, though the most
straight-forward is probably in conjunction with "ALL".

However, for sudoRunAsUser (but not sudoRunAsGroup) you could also
use it along with groups or netgroups just as you would for sudoUser.
That is, something like this ought to work as well:

sudoRunAsUser: %somegroup
sudoRunAsUser: !thatguy

where you could run commands as any user in "somegroup" except for
"thatguy" (don't be that guy).

I'm not sure how useful this really is, but under the hood sudoRunAsUser
is handled more or less the same as sudoUser so you get negation
for free.

 - todd
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.