sudoRunAsUser negation
"Michael W. Lucas" <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to wrap my brain around sudoRunAsUser|Group and negation. Negation seems to have an obvious use in sudoUser: "allow this group, except this person." Why would you use negation in a sudoRunAsUser, though? I mean: sudoRunAsUser: postgres sudoRunAsUser: mysql sudoRunAsUser: !mysql I read this as "allow running as postgres." Or is it a way of explicitly rejecting certain access in this sudoRole, more like: sudoRunAsUser: !root sudoRunAsUser: postgres sudoRunAsUser: mysql Or something else? Any enlightenment appreciated. Thanks, ==ml PS: Yes, this is for the new edition of sudo mastery. I am sadly limited by not having a multibillion-dollar employer to experiment on, as I did in the first edition. ;-) -- Michael W. Lucas https://mwl.io/ author of: Absolute OpenBSD, SSH Mastery, git commit murder, Immortal Clay, PGP & GPG, Absolute FreeBSD, etc, etc, etc... ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users