Thread: $path
View Single Post
  #1 (permalink)  
Old 05-Aug-2004, 18:36
nicolet
Guest
 
Posts: n/a
Default

I am struggling a bit with the best way to add a path for use globally on my SuSE 9.1 system. I assumed that there would be a YAST setting but I have not been able to find one. Google pointed me in the direction of /etc/profile which I opened but that file strongly suggests that I use the profile.local for adding PATH variables. I looked for this file and it did not exist so back to Google. I have since created the /etc/profile.local file and included the following commands.
#profile.local
#local system settings
#add nessus to PATH variable
PATH="$PATH":/usr/local/nessus/bin:/usr/local/nessus/sbin
export PATH

This appears to work but I end up getting TWO entries for the above directories once I restart my session.

Can someone enlighten me please?