Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

profiles and search paths

Status
Not open for further replies.

cbc4u

MIS
Jun 16, 2002
16
US
I was wondering what files control the login enviroment and
what determines the shell and the unique settings for each user. Also how to easily adjust search paths for commands.
Also if there is any tutorials on this subject that hits the nail on the head,


Thanks in advance, Jeff
 
Hi:

Generally, if you are using Bourne, sh, or Korn shell, ksh, the setup files are normally /etc/profile (to set up globals for everybody) or .profile in the user's home directory.

The user's default shell in set by the user's entry in /etc/passwd. This was set when the user was originally set up or later when a unix admin changed it.

Most any system administration book should cover this in greater detail.

Regards,


Ed
 
Hey ...

a list of files that are responsible for ur login ENV

/etc/bashrc
/etc/profile

($HOME)/.bashrc
($HOME)/.bash_profile
($HOME)/.bash_login
($HOME)/.login
($HOME)/.profile

Different files are used depending upon the Login shell (BASH,sh et cetera). and theres also a different priority list of the files in ($HOME). As in a shell may first look for .bash_profile. if thats not found then it may look for .profile et cetera

It can be interesting to find, which shell uses which file and in wat order :). try it out ;-)

ciao
mystery !?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top