5.4.2.1 Ensure root is the only UID 0 account

Information

Any account with UID 0 has superuser privileges on the system.

This access must be limited to only the default root account and only from the system console. Administrative access must be through an unprivileged account using an approved mechanism as noted in Item 5.6 Ensure access to the su command is restricted.

Solution

Run the following command to change the root account UID to 0 :

# usermod -u 0 root

Modify any users other than root with UID 0 and assign them a new UID.

See Also

https://workbench.cisecurity.org/benchmarks/18960

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(5)

Plugin: Unix

Control ID: c00e58f5feb16c928c48300d1677f5e674607b2036063bac879dfff42b8241bd