You can modify the default configuration files that are added to the home directory for a new account. For example, csh(1) has prototype .login and .cshrc files that are installed in a user's directory when csh is selected as that user's login shell.
When you create a new account with the Account Manager, the contents of the directory /usr/lib/scoadmin/account/skel are copied to the new user's home directory by default. The skel directory contains a standard user profile, .profile, that can list tasks and environment variables in addition to those listed in the system profile file. This user's profile allows you to further define the working environment that is set up when the user logs in. If you want to provide other directories and files (such as an rje directory or a .mailrc file), you can add them to the skel directory.
From the command line, the
command uses a different profile directory for creating
For example, if you have created an alternative skeleton
directory in /mylogin/newskel,
the following command creates a new user account
for user charlesf and copies the files in
/mylogin/newskel to to the user's home directory:
useradd -m -k /mylogin/newskel charlesf
You can also create other skeleton directories, each having a customized .profile (and any other files and directories you want them to have). Then, whenever you add a login name to your system, you can use the -k skel_dir option to useradd to name the full pathname of the particular skeleton directory you want copied to that user's home directory. This mechanism eliminates the need to add directories and files individually to a new home directory.
After executing the system profile, the computer executes the user's profile. The user's profile executes commands and shell scripts in the same way the system profile (/etc/profile) does.