4.1.2.10 Ensure root user has a dedicated home directory

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

The root user must have a dedicated home directory and not use / as their home directory.

By default, the home directory for the root user on AIX is / This means that all configuration files and directories it creates are visible to all users and may be accessible if the root user has a weak umask setting.

Moving these files to a dedicated home directory and setting appropriate file permissions allows for appropriate use of discretionary access control to these files.

Solution

Create a new home directory for the root user

mkdir /root

Set ownership and permissions on this directory

chown root:system /root
chmod 0700 /root

Update the home directory for the root user

chuser home=/root root

Move any necessary configuration files or directories to this new directory

See Also

https://workbench.cisecurity.org/benchmarks/10385