Ok, done. The screenshot made all the difference!
This is what I have now:
$ sudo -l
Matching Defaults entries for spiros on home:
env_reset
Runas and Command-specific defaults for spiros:
Defaults!/etc/ctdb/statd-callout !requiretty
User spiros may run the following commands on home:
(ALL) ALL
(root) NOPASSWD: /usr/bin/iptables
(root) NOPASSWD: /usr/bin/ip
The (ALL) ALL
was previously included by /etc/sudoers.d/10-installer
.
So, I moved the includedir
at the top of /etc/sudoers
.
File: /etc/sudoers
Defaults env_reset
@includedir /etc/sudoers.d
spiros ALL=(root) NOPASSWD: /usr/bin/iptables
spiros ALL=(root) NOPASSWD: /usr/bin/ip
File: /etc/sudoers.d/10-installer
%wheel ALL=(ALL) ALL
spiros
is member of wheel
File: /etc/sudoers.d/ctdb
Defaults!/etc/ctdb/statd-callout !requiretty
rpcuser ALL=(ALL) NOPASSWD: /etc/ctdb/statd-callout
Thank you all very much.
There was no way I could do it without your help (well, not before 2021-2022, that is )