[Pkg-lxde-maintainers] Bug#950537: lxterminal: wrong default PATH for superuser
Jan Weber
josef.schweik at seznam.cz
Mon Feb 3 10:32:20 GMT 2020
Package: lxterminal konsole
Version: 0.3.2-1
Severity: normal
Dear Maintainer,
By working in KDE/LXDE: start lxtermial or konsole. Then
$ su
# echo $PATH
gives:
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games;
what is the same as for nonsuperuser. Hence superuser must type the fullpath like:
# /sbin/ifconfig
This behavior started in Buster, and is observerd in Bullseye, too.
If working in real console (text mode without KDE/LXDE), the superuser PATH is correct.
I made my own patch by adding a next row to .bashrc:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
This was not observed in Debian 9 - stretch.
I didnot tested other GUI (gnome ...)
I didnot tested other xterminals (UXterm ...)
But the described behaviour may be the same.
Thanks for your attention
Jan
-- System Information:
Debian Release: 10.0 (11, too)
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8), LANGUAGE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages lxterminal depends on:
ii libatk1.0-0 2.30.0-2
ii libc6 2.28-10
ii libcairo-gobject2 1.16.0-4
ii libcairo2 1.16.0-4
ii libgdk-pixbuf2.0-0 2.38.1+dfsg-1
ii libglib2.0-0 2.58.3-2
ii libgnutls30 3.6.7-4
ii libgtk-3-0 3.24.5-1
ii libpango-1.0-0 1.42.4-6
ii libpangocairo-1.0-0 1.42.4-6
ii libpcre2-8-0 10.32-5
ii libvte-2.91-0 0.54.2-2
ii zlib1g 1:1.2.11.dfsg-1
lxterminal recommends no packages.
lxterminal suggests no packages.
-- no debconf information
More information about the Pkg-lxde-maintainers
mailing list