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 /root).
Procedure:
# mkdir /root
# chown root /root
# chgrp sys /root
# chmod 700 /root
# cp -r /.??* /root/.
Then, edit the passwd file and change the root home directory to /root. The cp -r /.??* command copies all files and subdirectories of file names that begin with '.' into the new root directory, which preserves the previous root environment. Must be in the '/' directory when executing the 'cp' command.

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: ed56045c5286dfed3b4433d7bc5779ea4149626f98a7dd431e63ee434296b690