SV-226479r603265_rule
V-226479
SRG-OS-000109
GEN001020
CAT II
10
Convert the root user into a role.
# usermod -K type=role root
Add the root role to authorized users' logins.
# usermod -R root <userid>
Check if the root is used for direct logins.
Procedure:
# last root | grep -v reboot
If any direct login records for root exist, this is a finding.
Verify the root user is configured as a role, rather than a normal user.
Procedure:
# egrep '^root:' /etc/user_attr
If the returned line does not include "type=role", this is a finding.
V-226479
False
GEN001020
Check if the root is used for direct logins.
Procedure:
# last root | grep -v reboot
If any direct login records for root exist, this is a finding.
Verify the root user is configured as a role, rather than a normal user.
Procedure:
# egrep '^root:' /etc/user_attr
If the returned line does not include "type=role", this is a finding.
M
4060