1. Home
  2. Security Hardening
  3. Tenable Cisco Firepower Management Center OS Best Practices
  4. Ensure access to the su command is restricted – wheel group contains root

Ensure access to the su command is restricted – wheel group contains root

Details

Restricting the use of su, and using sudo in its place, provides system administrators better control of the escalation of user privileges to execute privileged commands. The sudo utility also provides a better logging and audit mechanism, as it can log each command executed via sudo, whereas su can only record that a user executed the su program.

Solution

Add the following line to the /etc/pam.d/su file:
auth required pam_wheel.so use_uid

Create a comma separated list of users in the wheel statement in the /etc/group file:
wheel:x:10:root,

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles