Installation guide

9.2.1.3 Providing the Default Shell Scripts
Users can customize their working environment by modifying their startup
files. When a user logs in to the system, the login shell looks for startup
files in the login directory. If the shell finds a startup file, it reads the file
and executes the commands.
Table 9–1 displays each shell and the corresponding startup files.
Table 9–1: Shells and Their Startup Files
Shell System Startup File Login Startup Files
/bin/csh /etc/csh.login .cshrc, .login
/bin/ksh /etc/profile .profile
/bin/sh /etc/profile .profile
The operating system uses these startup files to initialize local and global
environment variables, shell variables, and terminal types. Use the
following procedure to copy the startup files to the login directory of each
user account:
1. Copy the startup files for each shell to the user’s login directory by
using the cp command. For example, to copy the startup files to the
user marcy directory, enter:
# cd /usr/skel
# cp -R ‘ls -A‘ /usr/users/marcy
2. Change to the user’s login directory and change file ownership and
access permissions from root to the user for each file. For example, to
make these changes to all of the files beginning with dot (.), for user
marcy, enter the following sequence of commands:
# cd /usr/users/marcy
# chmod 755 .??*
# chown marcy .??*
3. To confirm that the changes were made, use the ls command to list
marcy’s files:
# ls -Al
Refer to the csh(1), ksh(1), and the sh(1) reference pages for more
information on the shell commands.
9.2.1.4 Assigning a Password
Use the passwd command to assign a password for a user account. When
you enter the passwd command, the program prompts you for a password.
9–12 Administering User Accounts and Groups