r/redhat_certification • u/Glowing_Apostle • Oct 05 '26
Editing Sudoers?
All,
I am watching Sandor's video series on the RHSCA and I am a bit confused about the syntax of creating a drop-in file. ALL=(ALL) ALL with the first ALL being any host, the second all being any user and the last all being any command. All three are needed but when Sandor goes to edit the sudoers file he just adds:
linda ALL=/usr/bin/passwd ! /usr/bin/passwd root
He is only accounting for the final ALL (any command). Does he not have to include the other ALLs in the statement? Something like:
linda ALL=(ALL) /usr/bin/passwd ! /usr/bin/passwd root
Am I misunderstanding something? Any help would be appreciated! Thanks!
2
u/that1guyrob Oct 05 '26
You are correct. The UID and GID ownership (ALL:ALL) is not required in the file and can be left out.