Re: sudoRunAsUser negation

Thomas Harrison <[email protected]>
Newsgroups gmane.comp.tools.sudo.user
Message-ID <CALoM9ZMePqpO00ko3-2Lg3r8mWwBmYnUXStFJzhxVNjPAnpz3A@mail.gmail.com>
If a      sudo -l -G somegroup      option were available it might be
easier to wrap your brain around...

On Wed, Jul 10, 2019, 15:18 Todd C. Miller <[email protected]> wrote:

> 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
>
____________________________________________________________
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.