Setting PATH variable
Situation is - I need to change system wide variable PATH and LD_LIBRARY_PATH.
Editing file ~/.bashrc works, but only with current user in current bash sesion.
I want to create my own file rc.myrc which is run somewhere in system boot.
I have created rc.myrc and currently testing it.
Running rc.myrc does not permanently change the variables, new values are only available while rc.myrc is running. After finishing rc.myrc, previous values are in place (in the same bash session).
What am I doing wrong?
Should I better put new path for example in /etc/rc.d/rc.S ?
What else scripts set PATH, besides /etc/rc.d/rc.S? (rc.S does not contain full path as it is now)