0038-sudoers-priv-Are Permissions of the sudoers File Changed
Rule ID
Category
Level
Supported Versions
Description
- Monitor whether the permissions of the host file
/etc/sudoers have been modified.
Scan Frequency
Rationale
- The host file
/etc/sudoers allows specific users to execute various commands as the root user without requiring the root password.
Risk Items
Audit Method
- Run the following command and verify that Uid and Gid are both
0/root, and Access does not grant group or other permissions:
stat /etc/sudoers
Access: (0440/-r--r-----) Uid: ( 0/root) Gid: ( 0/root)
- If the permissions of the
/etc/sudoers file are detected to have been changed, log in to the server as the root user, restore the permissions, and audit the change.
Impact
Default Value
References
CIS Controls