10.3 Set Default Group for root Account

Information

The usermod command can be used to specify which group the root user belongs to. This affects permissions of files that are created by the root user.
Using GID 0 for the root account helps prevent root-owned files from accidentally becoming accessible to non-privileged users.

Solution

usermod -g 0 root

See Also

https://workbench.cisecurity.org/files/91

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6(5), CSCv6|5.1

Plugin: Unix

Control ID: 96202442b15d22702c7d8fd7635ba892bb25ec17383456761beaf10546a3448d