HP-UX System Administrator's Guide: Configuration Management
User login scripts can be used to override the system defaults. When HP SMH or
useradd adds a user, default user login scripts are copied to the user’s home directory
from the skeleton directory, which defaults to /etc/skel. See “Changing the Skeleton
Directory” (page 54). The POSIX and Korn shells use .profile. The C shell uses
.login and .cshrc. See the Shells: User’s Guide and the Technical Addendum to the
Shells: User’s Guide for information on customizing user login scripts.
NOTE: Do a full backup once you have initially set up and customized your system.
This allows you to reconstruct your system — kernel, system files, file system structure,
user structures, and your customized files — if you need to. Use HP-UX commands to
perform the backup, as described in the HP-UX System Administrator’s Guide: Routine
Tasks.
Setting Shadow Password Mode
Shadow password mode is a state in which account and password security information
and passwords are stored in a file, /etc/shadow, that can only be accessed by a
superuser. The standard password file, /etc/passwd, retains all the other customary
information, except that the password fields for all users is changed to an x.
See pwconv(1M) and shadow(4) for details.
To Switch to Shadow Password Mode
Execute the following command:
# pwconv
For each entry in /etc/passwd, the password is changed to x, and the password and
password aging information are transferred to /etc/shadow.
To Switch to Standard Password Mode
Execute the following command:
# pwunconv
For each entry in /etc/shadow, the password and the password time limit information
are stored in the password field of the user entry in /etc/passwd. Account aging and
the password warn limit are discarded. The /etc/shadow file is deleted.
Setting Long User, Group, Host, and File Names
Setting Long User and Group Names
By default, user names are restricted to eight characters and group names to 16
characters. To set long (up to 254-character) user and group names, see lugadmin(1M).
Once long user and group names have been set and used, you should not attempt to
revert to short names.
Setting Shadow Password Mode 43