System Administration Guide, Volume I

How to Customize User Initialization Files

  1. Become superuser on the system where the users' home directories are created and shared.

  2. Create a skeleton directory for each type of user.


    # mkdir /shared-directory/skel/user-type
    

    shared-directory

    The name of a directory that is available to other systems on the network.  

    user-type

    The name of a directory to store initialization files for a type of user. 

  3. Copy the default user initialization files into the directories you created for different types of users.


    # cp /etc/skel/local.cshrc /shared-directory/skel/user-type/.cshrc
    # cp /etc/skel/local.login /shared-directory/skel/user-type/.login
    # cp /etc/skel/local.profile /shared-directory/skel/user-type
    /.profile

    Note -

    You can use the ls -a command to list . (dot) files.


  4. Edit the user initialization files for each user type and customize them based on your site's needs.

    See "Customizing a User's Work Environment" for a detailed description on the ways to customize the user initialization files.

  5. Set the permissions for the user initialization files.


    # chmod 744 /shared-directory/skel/user-type/.*
    

Example--Customizing User Initialization Files

The following example customizes the C-shell user initialization file in the /export/skel/enduser directory designated for a particular type of user.


# mkdir /export/skel/enduser
# cp /etc/skel/local.cshrc /export/skel/enduser/.cshrc
 
(Edit .cshrc file-see "Example--.cshrc File ")
# chmod 744 /export/skel/enduser/.*