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

Enviroment-Settings

Status
Not open for further replies.

olli2003

Technical User
Jan 31, 2003
93
DE
Dear all

I've tried to find the enviroment-settings for specified users but I havn't found:eek:(( Where can I find this,
f. ex. the enviroment-settings for root?
Is it a file that I can edit, can't I?
Is it written down in the shell wich is used by the user?My actuell probelm is, that I'll want to set the env for one user for one more path (/usr/local/bin) wich isn't existing in it's enviroment yet. Thanks a lot!!!
Regards Oliver
 
Hi Oliver,
for specified user you can edit $HOME/.profile (for Korn and Born shell) or $HOME/.login $HOME/.cshrc foles for C shell. You can edit /etc/environment file for all user to add (for example) /usr/local/bin to $PATH variable.
Regards Boris
 
Hi Boria
Thanks a lot! The .profile , .login and also the .cshrc isn't the right place to configure this I think. The /etc/environment I've found, but in my case it'll just use for the env of "root". I've another env for the other user and further on I don't know to find the entries.

Best Regards
Oliver
 
Hi Oliver!

You should check out /etc/profile . This is the common part of environement settings for ksh, etc. (It is not really correct, but does the work somehow. I am not sure if it is suitable for all shells, but works surely for sh and ksh. bash even).

Thus when you log in, first /etc/profile is evaluated (run), and it is followed by <USER_HOME>/.profile

--Trifo
 
/etc/profile or /.profile is where the root account enviroment is.
 
comtec17: I think you aern't right. /etc/profile applies to all users not only root.

--Trifo
 
Hi,
/etc/environment applies to all users too.
Boris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top