Click to See Complete Forum and Search --> : path probs


nCider
03-16-2001, 11:32 AM
alright, for a certain app I have to set the path:

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

And then I can use the proggie.

But wait, when I stop the exit my box the next time I startup I have set the path again! Why isn't RH 6.2 saving this setting? Any help would be greatly appreciated. Thanks in advance.

nCider
----------
nCider Security [Are You Secure?] www.nCider.com (http://www.nCider.com) :eek:

mrBen
03-16-2001, 12:06 PM
OK - the answer is like this - there is a config file that defines the initial PATH variable, and all you need to do is add yours onto that. Problem is that I am not on a Linux box and cannot remember which file it is. It might be the .bashrc file in your home directory, or possibly .profile. But I can't remember, and I haven't been able to find out in my quick online search. Somebody else will know :)

nCider
03-16-2001, 04:03 PM
thanks

this box is rh6.2 and it was in

/etc/profile

All is cleared up and I'm ready to roll (everytime I start up)


Later.

nCider
---------
nCider Security [Are You Secure?] www.nCider.com (http://www.nCider.com)

KT
03-16-2001, 04:14 PM
There are a whole bunch of places you can put the PATH. One is your own (the specific user name) .profile file. But basically you can put it in many other places too.

Rakeswell
03-16-2001, 04:28 PM
I'm a newbie, but I just went through this to get the JDK working.

If you edit the /etc/profiles , this will set the path for *all* users on your system.

If, however, when logged in as a user, you can just open the .bash_profile or whichever .profile you need to set the path for. This sets the path *only* for that user.

[ 16 March 2001: Message edited by: Rakeswell ]

nCider
03-16-2001, 04:41 PM
exactly as I found, that's why I did it that way, everybody here needs to use nessus for security scanning..... :D