Traditionally, the HP-UX root user, or superuser, has used the system’s root directory, /, as its home directory. This means that root’s supporting files, such as .profile, .kshrc, and .sh_history, are mixed in with file system mounts and other public data.
HP recommends that you create a separate home
directory for root. Since it must be on the
root volume, rather than in the /home directory,
which is often on a separate file system, we suggest you use a directory
name like /homeroot, which would reside on the
root volume. By having a private home directory, you also provide
a secure location for the root user’s private files.
This chapter describes how to configure the home
directory and the environment for the root user.