[Pkg-shadow-devel] Bug#918754: PATH is missing sbin
davylawyer1 at gmail.com
Fri Sep 6 19:33:32 BST 2019
I installed Debian 10 from a usb drive, had this problem, and solved it..
The PATH environment variable is set in /etc/profile but since /etc/profile
is only run by a login shell and there is no login shell, /etc/profile
never runs and it never has a chance to set PATH. I use the lxde GUI.
Booting the PC takes me to the login to lxde and I login. However I don't
get any shell. Then from the desktop I start xterm (or the like). This
starts a shell but it's not a login shell since I'm already logged in. So
there is no login shell and /etc/profile is never run.
There are at least a couple of ways to solve this. One is to type su
--login (instead of just su) to create a login shell and become the su.
Another is to set PATH in /etc/bash.bashrc. But don't copy the contents of
/etc/profile to /etc/bash.bashrc for if you do you will create an infinite
loop since /etc/profile calls /etc/bash.bashrc which make the bashrc file
call itself creating an infinite loop. You have to be selective in what
you copy to bashrc. The fix that's needed is perhaps to modify
/etc/bash,bashrc for the bash package.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pkg-shadow-devel