Managing User Accounts and User Environments in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Customizing a User Initialization File

The following example shows a sample of the .profile user initialization file. You can use this sample file as a template to customize your own user initialization files. This example uses system names and paths that you will need to modify for your particular site.

Example 1-2  .profile File
PATH=$PATH:$HOME/bin:/usr/local/bin:/usr/gnu/bin: User's shell serach path 
MAIL=/var/mail/$LOGNAME Path to user's mail file
NNTPSERVER=server1 User's time/clock server
MANPATH=/usr/share/man:/usr/local/man User's search path for man pages
PRINTER=printer1 User's default printer
umask 022 User's default file creation permissions
export PATH MAIL NNTPSERVER MANPATH PRINTER Sets the listed environment variables