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: d988af7e8ba5cdddf969f19cfae5be828ffdedf8aa3c882910f6665d9f3d4d47