Computing.Net > Forums > Linux > .bash_profile question

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

.bash_profile question

Reply to Message Icon

Name: Anand
Date: October 24, 2002 at 06:52:36 Pacific
OS: RH 7.3
CPU/Ram: 512
Comment:

Hi
When my desktop system starts up,I usually login as root in my KDE environment. After that I do a su - oracle to login to my Oracle user and start my database. However I notice that when I run su - oracle the .bash_profile of oracle user does not get executed. None of my essential env variables like ORACLE_HOME, LD_LIBRARY_PATH etc get set. Even explicitly running . .bash_profile does not help. The only way I can set them is when I logout as root and login as oracle user. This can be painful sometimes,since I can connect to internet only as root user. Is there anyway I can set my env variables by running my .bash_profile for oracle user when in su - oracle.

Thanks

Anand



Sponsored Link
Ads by Google

Response Number 1
Name: armin
Date: October 24, 2002 at 07:29:48 Pacific
Reply:

A) DONT LOG INTO KDE AS ROOT
B) what does your .bash_profile look like? are u using export? are you talking about the .bash_profile in oracle's homedir?
C) edit /etc/profile and add something like . ~/.bash_profile. that should do the trick.
D) youre running kde on an oracle server?
E) youre running kde on an oracle server?

:)


0

Response Number 2
Name: 3Dave
Date: October 24, 2002 at 07:36:54 Pacific
Reply:

Hmmm....If you set up your environment variables as root (ie add your oracle stuff to root profile) and then:
# su -m oracle
it should keep your values intact.

But maybe you should sort out why you can only access the net as root instead and then log on to KDE as oracle.


0

Response Number 3
Name: David Perry
Date: October 24, 2002 at 07:57:07 Pacific
Reply:

To read the .profile of the assumed user you need to use the '-l' flag to su

su -l user

Don't loging as root
Running kde chews up tons of resources that oracle would gladly use.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: .bash_profile question

variable question www.computing.net/answers/linux/variable-question/19655.html

A few questions www.computing.net/answers/linux/a-few-questions/3900.html

Easy Question : software installation www.computing.net/answers/linux/easy-question-software-installation/10554.html