Re: Disallow User switching in Group

Patrik Peng <[email protected]> Tue, 16 Nov 2021 16:06:19 +0100
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
On 16.11.21 15:34, Todd C. Miller wrote:
> %sudo-iologĀ ALL=(:) SETENV: NOPASSWD: LOG_INPUT: LOG_OUTPUT: /bin/bash, /usr/bin/bash, /usr/local/bin/bash
>
> should do the trick.  An empty RunasUser will match the invoking
> user.  An empty set of parentheses should also work.  You can verify
> this by running "sudo -l" as that user.  The output will expand the
> empty RunasUser to the user's login name.
>
>   - todd

Hi Todd

Thanks for the swift response. This was exactly what I was looking for, 
very nice.

Thanks a lot
Patrik

____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users
OpenPGP_signature (application/pgp-signature, 840 B) - not displayed