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 root places in its default directory. It also gives root the same discretionary access control for root's home directory as for the other user home directories.

Solution

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

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

Then, 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. Ensure you are in the '/' directory when executing the 'cp' command.

See Also

http://iasecontent.disa.mil/stigs/zip/U_RedHat_5_V1R18_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|III, CCI|CCI-000366, Group-ID|V-774, Rule-ID|SV-37349r2_rule, STIG-ID|GEN000900, Vuln-ID|V-774

Plugin: Unix

Control ID: fa36fc7c833e5d76b532ac5ad7574ba65b83098e0413a290c46511b1cb3382b1