Good day,
I would like to standarize the way we write /etc/sudoers.d/ files and we currently do this on another linux platform that we want to carry to SUSE.
sysadm@suse15:~> sudo cat /etc/sudoers.d/SRtest
# Adding some commands I don't need to enter password to run.
%suse@f1.lab.com ALL=(ALL) NOPASSWD: /usr/bin/cat /etc/sudoers
Using only the group %suse, it works perfectly. The thing breaks when I add a domain name.
SLES 15 SP3 it fails to recognize we are defining the domain. I have tried several combinations like:
%F1\suse , %f1.lab.com\suse, %suse@f1.lab.com, %f1\suse, f1%suse
My SUSE details:
sysadm@suse15:~> hostnamectl
Static hostname: suse15
Icon name: computer-vm
Chassis: vm
Machine ID: b8c3399ac651480097628e2cca040ea8
Boot ID: 665e9a2aa85e4568ba88f3e70bd25d13
Virtualization: microsoft
Operating System: SUSE Linux Enterprise Server 15 SP3
CPE OS Name: cpe:/o:suse:sles:15:sp3
Kernel: Linux 5.3.18-150300.38.53-azure
Architecture: x86-64
sysadm@suse15:~> sudo -V
Sudo version 1.9.5p2
Sudoers policy plugin version 1.9.5p2
Sudoers file grammar version 48
Sudoers I/O plugin version 1.9.5p2
Sudoers audit plugin version 1.9.5p2
sysadm@suse15:~>
Does this article still applies?
https://www.suse.com/support/kb/doc/?id=000018877