View previous topic :: View next topic |
Author |
Message |
Riklaunim Apprentice
Joined: 16 Dec 2004 Posts: 286 Location: Poland
|
Posted: Wed Aug 03, 2005 12:45 pm Post subject: /sbin and /usr/sbin not visible "globaly" in conso |
|
|
I've made a typical gentoo stage3 install from another distro, after it emerged I've killed the old distro and moved gentoo to / (livecd, root, mc) now everything works without /sbin and /usr/sbin problem. As root in console something like env-update won't work (command not found) (but /usr/sbin/env-update works) it's for all apps in /sbin and /usr/sbin a symlink got killed or is it something else ? _________________ Biblioteka CMS i PHP | Biblioteka Linuksa | Biblioteka cRPG | Biblioteka Pythona |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Wed Aug 03, 2005 1:01 pm Post subject: |
|
|
The $PATH variable gets set when processing "/etc/profile" (The file gets processed when login). But it doesn't includes "/sbin" and "/usr/sbin" for normal users (Just for root). So if you switch to root using "su", you've also to process "/etc/profile". You can do that one of three ways:
1. Login as root
2. If logged in as normal user and switching to root by using su, use the "-" switch:
3. After "su" to root, perform the following command:
Code: |
$ source /etc/profile
|
Mfg
Sino |
|
Back to top |
|
|
Riklaunim Apprentice
Joined: 16 Dec 2004 Posts: 286 Location: Poland
|
|
Back to top |
|
|
|