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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

profiles and 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
 
This depends on what shell you use. Personally, I prefer the bash shell(enhanced version of the bourne shell (sh)). When using the bash shell, you can modify your search path by typing the following on the command line:
export PATH=$PATH:/usr/local/bin
if you wanted to make this change permanent for each user login. you can just type the following in your .profile file, which you must create(initially):

PATH=$PATH:/usr/local/bin
export PATH

Hope this helps.

Amir
 
Following are the files where the login environment is set. These files are copied to the users home folder when they r created.

bourne shell: $home/profile
c shell: $home/login and $home/.cshrc.

Changing the environment variables in these files would set the PATH to whatever u require..

There is a similar kinda thread in this forum.. Refer to last weeks threads in this forum; u will get some more info..

Regds,

- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
 
To add to butterfly123's comment should be $home/ .login file and $home/.cshrc for the c shell.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top