[Pkg-shadow-devel] Bug#1026846: login: PATH set to ENV_SUPATH when logging in as a regular user

Andrea Pappacoda andrea at pappacoda.it
Thu Dec 22 13:44:29 GMT 2022


Package: login
Version: 1:4.13+dfsg1-1
Severity: normal

Hi, after noticing that /usr/bin/games was not in my PATH, I tried to figure
out why. My PATH is currently set to
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin, which is the same
exact value found in /etc/login.defs under the variable ENV_SUPATH, which
should be the default PATH for superusers.

This issue isn't present when logging in as a different user which isn't part
of the sudo group.

List of my groups:

    tachi : tachi cdrom floppy sudo audio dip video plugdev users kvm netdev
bluetooth sbuild scanner lpadmin

List of the other user's groups:

    lorenzo : lorenzo lp cdrom audio video plugdev users netdev scanner

What could be the cause of this issue?

Thanks!


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-6-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages login depends on:
ii  libaudit1       1:3.0.7-1.1+b2
ii  libc6           2.36-6
ii  libcrypt1       1:4.4.33-1
ii  libpam-modules  1.5.2-5
ii  libpam-runtime  1.5.2-5
ii  libpam0g        1.5.2-5

login recommends no packages.

login suggests no packages.

-- no debconf information



More information about the Pkg-shadow-devel mailing list