Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> A bit of Linux advice yet again??
Hi Tim,
I'm not 100% sure, but isn't /etc/profile always run as it sets up stuff you (the sys admin) want setting up for all users, and then it looks for the others. It certainly does on my HP servers - /etc/profile then $HOME/.profile where $HOME is appropriate to the user logging in - obviously !
Cheers,
Norman.
Tel: 0113 289 6265 Fax: 0113 289 3146 URL: http://www.Lynx-FS.com -------------------------------------
-----Original Message-----
From: tcross_at_tiger.rapttech.com.au
[mailto:tcross_at_tiger.rapttech.com.au]On Behalf Of Tim X
Posted At: Sunday, February 02, 2003 5:23 AM
Posted To: server
Conversation: A bit of Linux advice yet again??
Subject: Re: A bit of Linux advice yet again??
Frank
Actually, bash will look for a number of different files in a certain order and stops with the first one it finds. I think the order is something like -
/etc/profile
~/.bash_profile
~/.bash_login
~/.profile
BUT it only looks for these files iff it is a login shell. Under X, unless your .xsession has the --login option set, all terminals (xterms et. al.) you open are opened as just a sub-shell of your X session and therefore not as a login shell (as you are already logged in).
Tim
-- Tim Cross The e-mail address on this message is FALSE (obviously!). My real e-mail is to a company in Australia called rapttech and my login is tcross - if you really need to send mail, you should be able to work it out!Received on Mon Feb 03 2003 - 07:17:56 CST