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

https://iasecontent.disa.mil/stigs/zip/U_AIX_6-1_V1R14_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: e4b8b566d50cc80e1f6fedfe496904b65140145772038a8b1175188d8b01b14c