Bug#950537: lxterminal: wrong default PATH for superuser

2020-02-03 Thread Bernhard Übelacker
Hello Jan,
please leave the bugs email in the recipients or cc list to
have all information attached to the bug e.g. by using "reply all".

Nice to hear it works.
You can close a bug by just changing the email recipient from
'950...@bugs.debian.org' to '950537-d...@bugs.debian.org'.

Kind regards,
Bernhard



Am 03.02.20 um 15:55 schrieb Schweik Josef:
> Well, you are quite correct, "su -" is working fine!
> ...
> 
> Thanks. Jan
> 
> Please, how can I close this bug report?
> 
> 



Bug#950537: lxterminal: wrong default PATH for superuser

2020-02-03 Thread Bernhard Übelacker
Hello Jan,
your issue might originate not from the terminal but from su itself.

This might be an interesting read:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904988#20

But in short, is instead of 'su' using 'su -' working
for you like expected?

Kind regards,
Bernhard



Bug#950537: lxterminal: wrong default PATH for superuser

2020-02-03 Thread Jan Weber
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  libc62.28-10
ii  libcairo-gobject21.16.0-4
ii  libcairo21.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-00.54.2-2
ii  zlib1g   1:1.2.11.dfsg-1

lxterminal recommends no packages.

lxterminal suggests no packages.

-- no debconf information