Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ [1] 2 3 4 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: /opt/bin in root's PATH, For ucis< Next Oldest | Next Newest >
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Oct. 07 2006,10:35 QUOTE

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).
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 07 2006,13:39 QUOTE

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.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Oct. 08 2006,10:28 QUOTE

Whichever.  /etc/profile is the usual I know.  It's not the point of the thread.





.
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Oct. 27 2006,13:01 QUOTE

*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?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 27 2006,14:11 QUOTE

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?


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
20 replies since Oct. 07 2006,10:35 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ [1] 2 3 4 5 >/
reply to topic new topic new poll
Quick Reply: /opt/bin in root's PATH

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code