Information
The system must restrict the ability of users to assume excessive privileges to members of a defined group and prevent unauthorized users from accessing administrative tools.
GROUP ID: V-220001RULE ID: SV-220001r958726
Allowing any user to elevate their privileges can allow them excessive control of the system tools.
Solution
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]