OL09-00-002361 - OL 9 must restrict the use of the su command.

Information

The su program allows to run commands with a substitute user and group ID. It is commonly used to run commands as the root user. Limiting access to such commands is considered a good security practice.

Solution

Configure OL 9 to require users to be in the "wheel" group to run su command.

In file "/etc/pam.d/su", uncomment the following line:

"#auth required pam_wheel.so use_uid"

Or use the following command to update /etc/pam.d/su

$ sed '/^[[:space:]]*#[[:space:]]*auth[[:space:]]\+required[[:space:]]\+pam_wheel\.so[[:space:]]\+use_uid$/s/^[[:space:]]*#//' -i /etc/pam.d/su

If necessary, create a "wheel" group and add administrative users to the group.

$ grep wheel /etc/group

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Oracle_Linux_9_V1R2_STIG.zip

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3(4), CAT|II, CCI|CCI-002165, Rule-ID|SV-271723r1091881_rule, STIG-ID|OL09-00-002361, Vuln-ID|V-271723

Plugin: Unix

Control ID: 4f7acdc8cb2cf9db442ab5dca873afe0f90b942ea303f81ec630cc52dc161488