7.5 Change Home Directory for root Account

Information

By default, the Solaris OS root user's home directory is '/'.

Note - If the user logs into GNOME, the directories 'Desktop' and 'Documents' will also be created under /. Move these directories into /root, if they exist.

Solution

Perform the following to implement the recommended state-
mkdir -m 700 /root
mv -i /.?* /root/
passmgmt -m -h /root root

See Also

https://workbench.cisecurity.org/files/614

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-2c.

Plugin: Unix

Control ID: cf03c4663ef252262e9fdbec1e1f1576f65fe748c8618b81b59c2a9f6aa41fbb