SV-219973r603267_rule
V-219973
SRG-OS-000324
SOL-11.1-040200
CAT II
10
The root role is required.
Convert the root user into a role.
# usermod -K type=role root
Add the root role to authorized users' logins.
# usermod -R +root [username]
Remove the root role from users who should not be authorized to assume it.
# usermod -R -root [username]
Verify the root user is configured as a role, rather than a normal user.
# userattr type root
If the command does not return the word "role", this is a finding.
Verify at least one local user has been assigned the root role.
# grep '[:;]roles=root[^;]*' /etc/user_attr
If no lines are returned, or no users are permitted to assume the root role, this is a finding.
V-219973
False
SOL-11.1-040200
Verify the root user is configured as a role, rather than a normal user.
# userattr type root
If the command does not return the word "role", this is a finding.
Verify at least one local user has been assigned the root role.
# grep '[:;]roles=root[^;]*' /etc/user_attr
If no lines are returned, or no users are permitted to assume the root role, this is a finding.
M
4022