I’ve spent almost 3 hours trying to find the problem, but to no avail.
This is Step 7 of the User and Group Management Lab.
I’m open to an idea to try, but I tried A LOT!
I just need to assign the command alias LIST_AND_ID to john_doe.
I got through the first 6 steps ok.
. . .
Cmnd alias specification
Cmnd_Alias LIST_AND_ID = /bin/ls, /bin/whoami
User privilege specification
root ALL=(ALL:ALL) ALL
Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
See sudoers(5) for more information on “@include” directives:
@includedir /etc/sudoers.d
iacadmin ALL=(ALL:ALL) ALL
john_doe ALL=(ALL) NOPASSWD: LIST_AND_ID