Joey Hess wrote: [snip] > Looking at it again, the root cause seems to be that a root login shell > does not get the sbin directories in the PATH. The PATH is > "/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games". That seems broken > to me, shouldn't root have those directories in its path when you log in > as root? Anyway, probably a base-config bug, since base-config was > recently changed to call sh -l. > > Apparently /root/.profile is supposed to set the PATH for root to > include the sbin directories. I don't know why this isn't happening, but > I have seen the same problem on fresh debian installs. I can't reproduce > it after install.
~/.profile gets ignored, because $HOME is set to / instead of /root, so it uses only the definitions in /etc/profile. (This also leaves a .bash_history file in /.) Thiemo
signature.asc
Description: Digital signature