Information Technology Reference
In-Depth Information
set path=(/bin /usr/bin /usr/ucb /etc .)
if ( $?prompt ) then
set history=32
endif
Also in the /etc/skel directory is a simple .profile that can also be used as a
default:
# This is the default standard profile provided to a user.
# They are expected to edit it to meet their own needs.
MAIL=/usr/mail/${LOGNAME:?}
When an account is created using the admintool command, the appropriate
/etc/skel file is copied to the home directory of the user account based on
the selected login shell (that is, .profile for Bourne and Korn shells, .cshrc for
C shell, and so on). However when the useradd command is used, all the
/etc/skel files (.profile, local.cshrc, local.login, and local.profile) are copied
to the home directory regardless of the selected shell. In this case, the appro-
priate file(s) (based on type of shell) must be manually configured.
Customizing the User Environment
The initialization file templates can be modified to provide a custom envi-
ronment for new user accounts. In addition, the system profile ( /etc/
profile ) can be modified to customize the environment for all users during
login initialization.
Keep in mind that the system profile, /etc/profile , is executed before the user's pro-
file. This provides the ability to control and restrict the user environment before the
user has an opportunity to make any modifications.
To customize individual user accounts, the initialization files in the user's
home directories can be modified. For the most part, this will consist of
adding commands to be automatically executed or defining shell parameters.
Defining Shell Variables in .profile
Variables defined and exported in the .profile become part of the user's environ-
ment. These variables are available to programs and shells executed by the user.
A common shell variable defined in the .profile is LPDEST , which is used to
specify a default printer. To define HPLaser as the default printer, include
the following in the .profile for a user account:
LPDEST=HPLaser
export LPDEST
Search WWH ::




Custom Search