Package: su
Version: su from util-linux 2.33.1
Severity: normal

Dear Maintainer,

login as root the PATH is correct:

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

but login with su the PATH is like normal user:
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games

i'm using debian 10 (buster) fresh install from netinstall

-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=eu_ES.UTF-8, LC_CTYPE=eu_ES.UTF-8 (charmap=UTF-8), 
LANGUAGE=eu_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to