Solaris Transition Guide

Customizing User Environments

This section describes how to determine which initialization files you can edit to customize the local environment based on your choice of login shell, and where to find them in the SunOS release 5.7 file systems. Set up your environment by editing the variables in the initialization files. The default shell determines which files you need to edit: .profile, .login, or .cshrc. Table 6-2 shows the initialization files for the Bourne, C, and Korn shells.

Table 6-2 Initialization Files for Bourne, C, and Korn Shells

Shell 

Initialization File 

Purpose 

Bourne

/etc/profile

Defines system profile at login 

 

$HOME/.profile

Defines user's profile at login 

C

/etc/.login

Defines system environment at login 

 

$HOME/.cshrc

Defines user's environment at login 

 

$HOME/.login

Defines user's profile at login 

Korn 

/etc/profile

Defines system profile at login 

 

$HOME/.profile

Defines user's profile at login 

 

$HOME/ksh_env

Defines user's environment at login in the file specified by the ksh_env variable

In this release, the shell initialization-file templates have moved to the /etc/skel directory from /usr/lib, where they were in the SunOS release 4 software. The template file locations are shown in Table 6-3. Copy the template file (or files) for the appropriate default shell to your home directory before you modify it.

Table 6-3 Default Home Directory Startup Files

Shell 

File 

Bourne

/etc/skel/local.profile

C

/etc/skel/local.login

/etc/skel/local.cshrc

Korn

/etc/skel/local.profile

For information on setting up initialization files, see System Administration Guide, Volume I.

Using the SunOS Release 4 Work Environment With the Solaris Software

The SunOS release 5.7 software can use the old SunOS release 4 system files and initialization files such as .login, .cshrc, and.profile to re-create the look and feel of the SunOS release 4 work environment. Many of these SunOS release 4 files can be converted, or used as they are, and executed easily.

The installation process in Chapter 3, Converting a SunOS Release 4 System to the Solaris 7 Environment, explains how to re-create the SunOS release 4 environment within the Solaris 7 operating environment.