Re: Sorry, user me is not allowed to execute 'cmd' as me:Media on machinename
"Todd C. Miller" <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <[email protected]> |
The short answer is you probably just want: me ALL=(ALL:ALL) NOPASSWD: SETENV: ALL The long answer is that the sudoers file determines what users and groups a command may be run as. Both users and groups need to be explicitly allowed in sudoers. There is a special case for running a command as the invoking user but there is not a currently a special case for running the command as the invoking user *and* one of the invoking user's groups. I agree it would make sense for sudo to allow this, but currently it does not. - todd ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users