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 >
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Oct. 29 2006,16:26 QUOTE

Correct. For liveCD/frugal it is not a login shell.
I will adjust Root Shell from menu and Right Click Aterm Icon to give correct root PATHing in next RC.

For fluxbox menu Root Shell lines change -e sudo /bin/bash to -e sudo su -

For Aterm.lnk change MenuCommand1 from sudo aterm -cr red to aterm -cr red -e sudo su -
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Oct. 29 2006,23:40 QUOTE

Quote (mikshaw @ Oct. 27 2006,13:19)
another variation...
dsl@box:~$ sudo echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games:/opt/bin:.:.

Actually that doesn't give you what you think it will.
In this case.. $PATH would've been subbed in by the "dsl@box" parent shell before the line continues.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 30 2006,02:10 QUOTE

yes, but you'd get the same result as if you used "sudo command" to run a command found in /opt/bin...it would still work even though /opt/bin is not in root's PATH because it uses dsl's environment.

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





Group: Members
Posts: 3275
Joined: July 2006
Posted: Oct. 30 2006,14:31 QUOTE

Ah, I see what you were trying to get at now.
(I had thought you were trying to output root's PATH that way)

Personally, I mostly use sudo <command> anyways, so that's probably why I never had this problem...
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Nov. 02 2006,11:24 QUOTE

I notice when using Robert's fix that these root shells now start using their home /root.

A good thing anyway I think, that's more standard - root's bash history is in that dir.  I like the blue prompt too - hard to ignore that you have a root shell open.

Perhaps a line "root" will need to be added to filetool.lst so root's bash history gets backed up?
Back to top
Profile PM 
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