DSL Ideas and Suggestions :: /opt/bin in root's PATH
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 -
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.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.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...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?Next Page...
original here.