[Pkg-shadow-devel] Bug#918754: bash: $PATH in bash does not include /sbin and /usr/sbin

Karsten debian at decotrain.de
Sun Sep 8 02:57:58 BST 2019


Am 06.09.19 um 00:41 schrieb Markus Koschany:
> This is a new behavior because the util-linux implementation of su is
> used now. See also /usr/share/doc/util-linux/NEWS.Debian.gz for more
> information.
>
> "If you want to restore behaviour more similar to
>   the previous one you can add 'ALWAYS_SET_PATH yes' in /etc/login.defs."
>
> Markus

Thanks.
My /etc/login.defs is now

#
# *REQUIRED*  The default PATH settings, for superuser and normal users.
#
# (they are minimal, add the rest in the shell startup files)
ENV_SUPATH      PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV_PATH        PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
ALWAYS_SET_PATH yes


This seems to work.
But to solve the problem this should be added by default.
Then this bug can be closed.

Cheers
karsten



More information about the Pkg-shadow-devel mailing list