<div dir="ltr">Aha! Thank you. Since it was used in the menu shortcut of "Root Terminal" for anyone who used the XFCE desktop, perhaps it should be moved to "xfce4" ? They should probably replace the implementation of the menu since they formerly depended on gksu. I verified after upgrading all packages to current testing that my menu for "Root Terminal" still references gksu.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 24, 2018 at 10:48 PM Debian Bug Tracking System <<a href="mailto:owner@bugs.debian.org">owner@bugs.debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is an automatic notification regarding your Bug report<br>
which was filed against the gksu package:<br>
<br>
#907145: gksu: Fails to change PATH according to /ect/sudoers<br>
<br>
It has been closed by Jeremy Bicha <<a href="mailto:jbicha@debian.org" target="_blank">jbicha@debian.org</a>>.<br>
<br>
Their explanation is attached below along with your original report.<br>
If this explanation is unsatisfactory and you have not received a<br>
better one in a separate message then please contact Jeremy Bicha <<a href="mailto:jbicha@debian.org" target="_blank">jbicha@debian.org</a>> by<br>
replying to this email.<br>
<br>
<br>
-- <br>
907145: <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907145" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907145</a><br>
Debian Bug Tracking System<br>
Contact <a href="mailto:owner@bugs.debian.org" target="_blank">owner@bugs.debian.org</a> with problems<br>
<br><br><br>---------- Forwarded message ----------<br>From: Jeremy Bicha <<a href="mailto:jbicha@debian.org" target="_blank">jbicha@debian.org</a>><br>To: <a href="mailto:toff.tillman@gmail.com" target="_blank">toff.tillman@gmail.com</a>, <a href="mailto:907145-done@bugs.debian.org" target="_blank">907145-done@bugs.debian.org</a><br>Cc: <br>Bcc: <br>Date: Fri, 24 Aug 2018 06:44:24 -0400<br>Subject: Re: Bug#907145: gksu: Fails to change PATH according to /ect/sudoers<br>On Fri, Aug 24, 2018 at 6:24 AM Chris Tillman <<a href="mailto:toff.tillman@gmail.com" target="_blank">toff.tillman@gmail.com</a>> wrote:<br>
> This showed gksu is not changing the path when calling xfce4-terminal.<br>
<br>
gksu was removed from Debian Testing in January and from Unstable 2<br>
months after that. Therefore, gksu is no longer supported in Testing<br>
at all.<br>
<br>
For your other issues, maybe this explanation will help some:<br>
<a href="https://unix.stackexchange.com/questions/460478/debian-su-and-su-path-differences/460769#460769" rel="noreferrer" target="_blank">https://unix.stackexchange.com/questions/460478/debian-su-and-su-path-differences/460769#460769</a><br>
<br>
I am closing this bug because there is nothing we can do in gksu and<br>
it's not obvious to me whether there is another package to reassign<br>
this issue to.<br>
<br>
Thanks,<br>
Jeremy Bicha<br><br><br>---------- Forwarded message ----------<br>From: Chris Tillman <<a href="mailto:toff.tillman@gmail.com" target="_blank">toff.tillman@gmail.com</a>><br>To: Debian Bug Tracking System <<a href="mailto:submit@bugs.debian.org" target="_blank">submit@bugs.debian.org</a>><br>Cc: <br>Bcc: <br>Date: Fri, 24 Aug 2018 22:21:37 +1200<br>Subject: gksu: Fails to change PATH according to /ect/sudoers<br>Package: gksu<br>
Version: 2.0.2-9+b1<br>
Severity: normal<br>
<br>
Dear Maintainer,<br>
<br>
* What led up to the situation?<br>
I was upgrading the testing distribution after several months using aptitude. I<br>
upgraded about half the packages, but when I went to upgrade the other half I<br>
received errors from dpkg:<br>
<br>
Preconfiguring packages ...<br>
dpkg: warning: 'ldconfig' not found in PATH or not executable<br>
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable<br>
dpkg: error: 2 expected programs not found in PATH or not executable<br>
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin<br>
E: Sub-process /usr/bin/dpkg returned an error code (2)<br>
<br>
* What exactly did you do (or not do) that was effective (or<br>
ineffective)?<br>
I searched online and found the cause of the errors was, as the error states,<br>
the PATH being incorrect. I checked the PATH resulting when I chose "Root<br>
Terminal" from the menu, and this path did not include the sbin directories.<br>
<br>
root@ctillman:/home/chris# echo $PATH<br>
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games<br>
<br>
I tried sudo from a regular user terminal window to check the path which would<br>
come up with it:<br>
<br>
chris@ctillman:~$ sudo bash -c 'echo $PATH'<br>
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin<br>
<br>
And then, because gksu starts Root Terminal, I tried the equivalent with gksu:<br>
<br>
chris@ctillman:~$ gksu "bash -c 'echo $PATH'"<br>
gksu-run: gksu/bash -c 'echo<br>
|usr|local|bin:|usr|bin:|bin:|usr|local|games:|usr|games'/5044-0-ctillman_TIME11346051<br>
gksu-run: 1f53968cb8fe3d752131e6a334975c84<br>
<br>
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games<br>
<br>
This showed gksu is not changing the path when calling xfce4-terminal.<br>
<br>
My /etc/sudoers contents:<br>
<br>
root@ctillman:~# cat /etc/sudoers<br>
#<br>
# This file MUST be edited with the 'visudo' command as root.<br>
#<br>
# Please consider adding local content in /etc/sudoers.d/ instead of<br>
# directly modifying this file.<br>
#<br>
# See the man page for details on how to write a sudoers file.<br>
#<br>
Defaults env_reset<br>
Defaults mail_badpass<br>
Defaults<br>
secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"<br>
<br>
# Host alias specification<br>
<br>
# User alias specification<br>
<br>
# Cmnd alias specification<br>
<br>
# User privilege specification<br>
root ALL=(ALL:ALL) ALL<br>
chris ALL=(ALL:ALL) ALL<br>
<br>
# Allow members of group sudo to execute any command<br>
%sudo ALL=(ALL:ALL) ALL<br>
<br>
# See sudoers(5) for more information on "#include" directives:<br>
<br>
#includedir /etc/sudoers.d<br>
<br>
<br>
<br>
<br>
<br>
-- System Information:<br>
Debian Release: buster/sid<br>
APT prefers testing<br>
APT policy: (500, 'testing'), (500, 'stable')<br>
Architecture: amd64 (x86_64)<br>
<br>
Kernel: Linux 4.17.0-1-amd64 (SMP w/4 CPU cores)<br>
Locale: LANG=en_NZ.utf8, LC_CTYPE=en_NZ.utf8 (charmap=UTF-8), LANGUAGE=en_NZ:en (charmap=UTF-8)<br>
Shell: /bin/sh linked to /bin/dash<br>
Init: systemd (via /run/systemd/system)<br>
LSM: AppArmor: enabled<br>
<br>
Versions of packages gksu depends on:<br>
ii gconf-service 3.2.6-4.1<br>
ii libatk1.0-0 2.28.1-1<br>
ii libc6 2.27-5<br>
ii libcairo2 1.15.10-3<br>
ii libfontconfig1 2.13.0-5<br>
ii libfreetype6 2.8.1-2<br>
ii libgconf-2-4 3.2.6-4.1<br>
ii libgdk-pixbuf2.0-0 2.36.12-2<br>
ii libgksu2-0 2.0.13~pre1-9+b2<br>
ii libglib2.0-0 2.56.1-2<br>
ii libgnome-keyring0 3.12.0-1+b2<br>
ii libgtk2.0-0 2.24.32-2<br>
ii libpango-1.0-0 1.42.4-1<br>
ii libpangocairo-1.0-0 1.42.4-1<br>
ii libpangoft2-1.0-0 1.42.4-1<br>
ii libstartup-notification0 0.12-5<br>
ii sudo 1.8.23-2<br>
<br>
Versions of packages gksu recommends:<br>
ii gnome-keyring 3.28.2-1<br>
<br>
gksu suggests no packages.<br>
<br>
-- no debconf information<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Chris Tillman<br>Developer</div>