On 2/3/20 12:34 PM, Earl Ramirez wrote:
On Sun, 2020-02-02 at 23:27 -0500, Todd Zullinger wrote:
> The format of that rule looks fine to me. You might look in
> the logs (/var/log/secure if you've got syslog enabled, else
> use the journalctl command).
>
> It may be that you're hitting another rule which supercedes
> the one you've got there (for example, if there's a rule
> matching a group you're in). Using `sudo -U mike -ll` might
> be helpful.
+1 for Todd's comments, I have added a couple of commands and I was able
to access those commands without being prompt for the sudo passwod.
Thanks, Todd and Earl.
I am befuddled. Here is my sudoers file:
Defaults env_reset
Defaults mail_badpass
Defaults secure_path=<clipped: some path>
Cmnd_Alias LXC=/usr/bin/lxc
root ALL=(ALL:ALL) ALL
mike ALL=(ALL) NOPASSWD:LXC
%admin ALL=(ALL) ALL
%sudo ALL=(ALL:ALL) ALL
As you can see, there is not much there. I added the Cmnd_Alias and the
rule for mike. That's it.
I did try reordering ( and had to reboot "single" to fix it :/ )
Any ideas?
:m