| name | cis-ubuntu1204-v110-10-3 |
| description | Set Default Group for root Account |
| category | cis-os-hardening |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","ubuntu",12.04,"linux","root","group","user-management"] |
| cis_id | 10.3 |
| cis_benchmark | CIS Ubuntu 12.04 LTS Server Benchmark v1.1.0 |
| tech_stack | ["ubuntu","linux"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
10.3 Set Default Group for root Account (Scored)
Profile Applicability
Description
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.
Rationale
Using GID 0 for the root account helps prevent root-owned files from accidentally becoming accessible to non-privileged users.
Audit Procedure
Using Command Line
grep "^root:" /etc/passwd | cut -f4 -d:
Expected Result
The command should return 0.
Remediation
Using Command Line
usermod -g 0 root
Default Value
GID 0 is the default group for root.
References
- CIS Ubuntu 12.04 LTS Server Benchmark v1.1.0
Profile
Level 1 - Scored