GEN000900 - The root user's home directory must not be the root directory (/).

Information

Changing the root home directory to something other than / and assigning it a 0700 protection makes it more difficult for intruders to manipulate the system by reading the files that root places in its default directory. It also gives root the same discretionary access control for root's home directory as for the other plain user home directories.

Solution

The root home directory should be something other than / (such as /rootdir).

Procedure:
# mkdir /rootdir
# chown root /rootdir
# chgrp root /rootdir
# chmod 700 /rootdir
# cp -r /.??* /rootdir

Edit the passwd file and change the root home directory to /rootdir. The cp -r /.??* command copies all files and subdirectories of file names beginning with '.' into the new root directory, which preserves the previous root environment. The cp command must be executed from the / directory.

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_SOL_10_SPARC_V2R4_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|III, CCI|CCI-000366, Rule-ID|SV-226471r603265_rule, STIG-ID|GEN000900, STIG-Legacy|SV-774, STIG-Legacy|V-774, Vuln-ID|V-226471

Plugin: Unix

Control ID: cc217822d8595207fa869fcdd3c42531aed5ca78d70759098b0b14ec44fefde7