You are not logged in.
Pages: 1
$PATH of root is /usr/bin:/bin
There's no .bash_profile of root and I haven't changed anything in .bashrc (there's only bash promt).
How can it be fixed?
Last edited by F1y3r (2009-01-09 13:16:33)
Offline
in the file /etc/profile you should have something like this
# Set our default path
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export PATH
Offline
My /etc/profile already has:
# Set our default path
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export PATH
Here's full /etc/profile http://pastebin.com/m5295e6ef
Offline
when logged as root from you login manager (if you use one) is 'echo $PATH' giving the same result ?
How did you notice this with the root path ? error message ?
Offline
Thanks skualito. I have used the following way to autologin and it makes root use the wrong path:
x:5 :once:/bin/su username -l -c "/bin/bash –login -c startx >/dev/null 2>/dev/null"
Offline
Pages: 1