7.5 Change Home Directory for root Account - Check /root permissions.

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