Make PATH variable changes permanent on openSuse

Posted by Marlon on Server Fault See other posts from Server Fault or by Marlon
Published on 2010-03-11T18:41:57Z Indexed on 2010/03/11 18:44 UTC
Read the original article Hit count: 587

Okay, so I'm trying to do something that should be rather simple but for some reason I can't quite seem to make it work. All I simply want to do is add a path to the PATH environment variable in openSuse.

So far, I've edited the following line in /etc/default/su :

PATH=/usr/local/bin:/bin:/usr/bin

with this line :

PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/php/bin:/usr/local/mysql/bin

Basically, all I want to do is have access to php and mysqld regardless of how I log in directly from the command prompt without having to type trailing /usr/local/php/bin/ every time. Am I even editing the right file?

I'm a bit of a Linux newbie and to achieve something as trivial as this is eluding me. Server gods out there, drop be a crumb, please? :-)

© Server Fault or respective owner

Related posts about path

Related posts about opensuse