DSL Ideas and Suggestions :: /opt/bin in root's PATH
Could /opt/bin be added to the root user's path?
This would be for the benefit of ucis that drop symlinks to their binaries into /opt/bin for command line use (like many of mine do eg the various tools in mplayer uci).
User dsl has /opt/bin in PATH, so these are easily run from the command line. But user root has to cd to /opt/whatever
Moreover some binaries expect to find other binaries in PATH, so won't work when they don't find them.
I note that /etc/bashrc (I think it is) puts dirs into PATH that don't exist eg /opt/kde or something (I'm not on dsl).
I honestly don't think /etc/bashrc is used in DSL, although I've never tried removing it. As far as I know, /etc/bash.bashrc and /etc/profile are used to set up the default environment.
Whichever. /etc/profile is the usual I know. It's not the point of the thread.
.
*BUMP*
Mikshaw was on topic, my apologies.
It seems . /etc/profile is commented out in /etc/bash.bashrc, which is why /opt/bin is not in root's PATH at present.
Any information as to to why this is so?
Is there some reason it shouldn't just be put in root's PATH in /etc/bash.bashrc?
If I remember correctly, there was once an issue with PATH being reset each time a new shell was opened, because profile was not being used only at login. I can't recall what the solution was, but this might have been it. If so, I think it was appropriate for that particular issue. /etc/bash.bashrc is not a login script, so it should not run /etc/profile.
I don't know why /opt/bin is not added to root's PATH...shouldn't /etc/profile run automatically for all users?
Next Page...
original here.