Re: bash_profile question.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rohit khaladkar wrote:
> Hi All,I have RHEL 5.3 running on my system. I have
> a customized .bash_profile script in /home/oracle directory which sets
> ORACLE_HOME and other variables.
> When I login to the system as a Oracle user the .bash_profile script
> does initiate , but when I login as a root and do a "*su oracle*" , the
> .bash_profile does not run.
> 
> Any ideas what may be wrong, or what files I should be looking at..?
> 
No problem: su - oracle
If you add the dash, it then gets the user that you're su'ing to's environment;
if you don't, it doesn't.

	mark

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux