Acknowledgement sent
to Martin Steigerwald <Martin@Lichtvoll.de>:
New Bug report received and forwarded. Copy sent to Martin@Lichtvoll.de, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>.
(Mon, 06 Aug 2018 08:54:04 GMT) (full text, mbox, link).
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: login: shows error about "ALWAYS_SET_PATH" which is supported by "su" from "util-linux"
Date: Mon, 06 Aug 2018 10:51:47 +0200
Package: login
Version: 1:4.5-1.1
Severity: minor
Dear Andreas, dear maintainers,
for now I use "ALWAYS_SET_PATH" as mentioned in "NEWS.Debian" of "util-linux"
package in order to keep my backup script which needs root access and access
to a SSH agent running in a regular user session working. I intend to
configure sudo to take over the environment variables for SSH agent to
the root session at some time.
However, as long as that option is set, the "login" command complains about
it after entering the user name. You can see this easily by logging in on
a tty. Or by doing it on a shell, in this even before entering the user name:
somehost:~> LANG=C login
configuration error - unknown item 'ALWAYS_SET_PATH' (notify administrator)
somehost login: ^C
Expected results: No error message or warning as this is a configuration
option support by "su" from "util-linux" which shares the configuration file
"/etc/login.defs" with the "shadow" tools.
Thanks,
Martin
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.18.0-rc5-tp520-btrfstrim+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages login depends on:
ii libaudit1 1:2.8.3-1+b1
ii libc6 2.27-5
ii libpam-modules 1.1.8-3.7
ii libpam-runtime 1.1.8-3.7
ii libpam0g 1.1.8-3.7
login recommends no packages.
login suggests no packages.
-- Configuration Files:
/etc/login.defs changed:
MAIL_DIR /var/mail
FAILLOG_ENAB yes
LOG_UNKFAIL_ENAB no
LOG_OK_LOGINS no
SYSLOG_SU_ENAB yes
SYSLOG_SG_ENAB yes
FTMP_FILE /var/log/btmp
SU_NAME su
HUSHLOGIN_FILE .hushlogin
ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
ALWAYS_SET_PATH yes
TTYGROUP tty
TTYPERM 0600
ERASECHAR 0177
KILLCHAR 025
UMASK 022
PASS_MAX_DAYS 99999
PASS_MIN_DAYS 0
PASS_WARN_AGE 7
UID_MIN 1000
UID_MAX 60000
GID_MIN 1000
GID_MAX 60000
LOGIN_RETRIES 5
LOGIN_TIMEOUT 60
CHFN_RESTRICT rwh
DEFAULT_HOME yes
USERGROUPS_ENAB yes
ENCRYPT_METHOD SHA512
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>: Bug#905564; Package login.
(Mon, 20 Aug 2018 18:54:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Josep Lladonosa <jlladono@gmail.com>:
Extra info received and forwarded to list. Copy sent to Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>.
(Mon, 20 Aug 2018 18:54:03 GMT) (full text, mbox, link).
I can confirm bug just shown from a text console when trying to login (with
username different than root).
I would like to suggest that, if old behaviour is kept by adding
"ALWAYS_SET_PATH yes" in /etc/login.defs, it would be nice to have this
line already added in the file.
--
--
Salutacions...Josep
--
Information forwarded
to debian-bugs-dist@lists.debian.org, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>: Bug#905564; Package login.
(Mon, 11 Nov 2019 15:27:03 GMT) (full text, mbox, link).
Acknowledgement sent
to balint@balintreczey.hu:
Extra info received and forwarded to list. Copy sent to Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>.
(Mon, 11 Nov 2019 15:27:03 GMT) (full text, mbox, link).
To: Josep Lladonosa <jlladono@gmail.com>, 905564@bugs.debian.org
Subject: Re: [Pkg-shadow-devel] Bug#905564: login: shows error about
"ALWAYS_SET_PATH" which is supported by "su" from "util-linux"
Date: Mon, 11 Nov 2019 16:20:41 +0100
Control: reassign -1 util-linux 2.32-0.2
Josep Lladonosa <jlladono@gmail.com> ezt írta (időpont: 2018. aug.
20., H, 20:54):
>
> I can confirm bug just shown from a text console when trying to login (with username different than root).
>
> I would like to suggest that, if old behaviour is kept by adding
> "ALWAYS_SET_PATH yes" in /etc/login.defs, it would be nice to have this line already added in the file.
It was a decision of util-linux maintainers to change the behaviour
and /etc/default/su would be a better place to revert to the old
behaviour which should be shipped by su.
Cheers,
Balint
Bug reassigned from package 'login' to 'util-linux'.
Request was from Bálint Réczey <balint@balintreczey.hu>
to 905564-submit@bugs.debian.org.
(Mon, 11 Nov 2019 15:27:03 GMT) (full text, mbox, link).
No longer marked as found in versions shadow/1:4.5-1.1.
Request was from Bálint Réczey <balint@balintreczey.hu>
to 905564-submit@bugs.debian.org.
(Mon, 11 Nov 2019 15:27:04 GMT) (full text, mbox, link).
Marked as found in versions util-linux/2.32-0.2.
Request was from Bálint Réczey <balint@balintreczey.hu>
to 905564-submit@bugs.debian.org.
(Mon, 11 Nov 2019 15:27:04 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, util-linux packagers <util-linux@packages.debian.org>: Bug#905564; Package util-linux.
(Wed, 07 Oct 2020 14:03:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Greg Wooledge <greg@wooledge.org>:
Extra info received and forwarded to list. Copy sent to util-linux packagers <util-linux@packages.debian.org>.
(Wed, 07 Oct 2020 14:03:02 GMT) (full text, mbox, link).
There is no /etc/default/su file by default, but if you create one and
put
ALWAYS_SET_PATH yes
in it, then su *does* change the PATH variable, and this avoids the warning
message from login.
ii util-linux 2.33.1-0.1 amd64 miscellaneous system utilities
unicorn:~$ cat /etc/default/su
ALWAYS_SET_PATH yes
unicorn:~$ echo "$PATH"
/home/greg/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
unicorn:~$ su
Password:
root@unicorn:/home/greg# echo "$PATH"
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
root@unicorn:/home/greg#
Information forwarded
to debian-bugs-dist@lists.debian.org, util-linux packagers <util-linux@packages.debian.org>: Bug#905564; Package util-linux.
(Thu, 17 Dec 2020 15:54:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Gene Heskett <gheskett@shentel.net>:
Extra info received and forwarded to list. Copy sent to util-linux packagers <util-linux@packages.debian.org>.
(Thu, 17 Dec 2020 15:54:02 GMT) (full text, mbox, link).
On Wed, 7 Oct 2020 09:52:43 -0400 Greg Wooledge wrote:
> There is no /etc/default/su file by default, but if you create one and
> put
>
> ALWAYS_SET_PATH yes
>
> in it, then su *does* change the PATH variable, and this avoids the
warning
> message from login.
>
> ii util-linux 2.33.1-0.1 amd64 miscellaneous system utilities
>
> unicorn:~$ cat /etc/default/su
> ALWAYS_SET_PATH yes
> unicorn:~$ echo "$PATH"
>
/home/greg/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
> unicorn:~$ su
> Password:
> root@unicorn:/home/greg# echo "$PATH"
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> root@unicorn:/home/greg#
>
>
This has been done on stretch, but has no effect on this:
gene@coyote:~$ sudo -i
[sudo] password for gene:
root@coyote:~$ su amanda -c "geany bak-indices-configs"
configuration error - unknown item 'ALWAYS_SET_PATH' (notify administrator)
Is there a better fix for uptodate stretch?
Information forwarded
to debian-bugs-dist@lists.debian.org, util-linux packagers <util-linux@packages.debian.org>: Bug#905564; Package util-linux.
(Sun, 27 Dec 2020 23:39:11 GMT) (full text, mbox, link).
Acknowledgement sent
to Chris Hofstaedtler <zeha@debian.org>:
Extra info received and forwarded to list. Copy sent to util-linux packagers <util-linux@packages.debian.org>.
(Sun, 27 Dec 2020 23:39:11 GMT) (full text, mbox, link).
To: Gene Heskett <gheskett@shentel.net>, 905564@bugs.debian.org
Subject: Re: Bug#905564: /etc/default/su
Date: Mon, 28 Dec 2020 00:34:02 +0100
* Gene Heskett <gheskett@shentel.net> [201227 23:33]:
> > unicorn:~$ cat /etc/default/su
> > ALWAYS_SET_PATH yes
>
> This has been done on stretch, but has no effect on this:
>
> gene@coyote:~$ sudo -i
> [sudo] password for gene:
> root@coyote:~$ su amanda -c "geany bak-indices-configs"
> configuration error - unknown item 'ALWAYS_SET_PATH' (notify administrator)
>
> Is there a better fix for uptodate stretch?
/etc/default/su uses "shell" format, so it should be:
ALWAYS_SET_PATH=yes
instead.
I have updated the NEWS entry, and will close this bug with the next
upload.
Best,
Chris
Information forwarded
to debian-bugs-dist@lists.debian.org, util-linux packagers <util-linux@packages.debian.org>: Bug#905564; Package util-linux.
(Sun, 27 Dec 2020 23:51:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Gene Heskett <gheskett@shentel.net>:
Extra info received and forwarded to list. Copy sent to util-linux packagers <util-linux@packages.debian.org>.
(Sun, 27 Dec 2020 23:51:03 GMT) (full text, mbox, link).
To: Chris Hofstaedtler <zeha@debian.org>,
905564@bugs.debian.org
Subject: Re: Bug#905564: /etc/default/su
Date: Sun, 27 Dec 2020 18:50:06 -0500
On Sunday 27 December 2020 18:34:02 Chris Hofstaedtler wrote:
> * Gene Heskett <gheskett@shentel.net> [201227 23:33]:
> > > unicorn:~$ cat /etc/default/su
> > > ALWAYS_SET_PATH yes
> >
> > This has been done on stretch, but has no effect on this:
> >
> > gene@coyote:~$ sudo -i
> > [sudo] password for gene:
> > root@coyote:~$ su amanda -c "geany bak-indices-configs"
> > configuration error - unknown item 'ALWAYS_SET_PATH' (notify
> > administrator)
> >
> > Is there a better fix for uptodate stretch?
>
> /etc/default/su uses "shell" format, so it should be:
> ALWAYS_SET_PATH=yes
> instead.
>
> I have updated the NEWS entry, and will close this bug with the next
> upload.
I don't I'd be so quick to cancel/close this bug, as that is not where it
goes for me. My stretch does not have an /etc/default/su file. Yet su
works. I generally use konsole and run tde, not kde. Fix it for
everybody if you are claiming a fix.
Lets have a better 2021.
> Best,
> Chris
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>
Information forwarded
to debian-bugs-dist@lists.debian.org, util-linux packagers <util-linux@packages.debian.org>: Bug#905564; Package util-linux.
(Mon, 28 Dec 2020 00:03:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Chris Hofstaedtler <zeha@debian.org>:
Extra info received and forwarded to list. Copy sent to util-linux packagers <util-linux@packages.debian.org>.
(Mon, 28 Dec 2020 00:03:05 GMT) (full text, mbox, link).
* Gene Heskett <gheskett@shentel.net> [201228 00:51]:
> On Sunday 27 December 2020 18:34:02 Chris Hofstaedtler wrote:
[..]
> I don't I'd be so quick to cancel/close this bug, as that is not where it
> goes for me. My stretch does not have an /etc/default/su file. Yet su
> works. I generally use konsole and run tde, not kde. Fix it for
> everybody if you are claiming a fix.
stretch does not get fixes any more. Fixes go into bullseye.
On bullseye, creating an /etc/defaults/su file with the suggested
contents works.
If you are suggesting this does not work on stretch, that might be
correct, but is of no relevance to me.
Chris
Message sent on
to Martin Steigerwald <Martin@Lichtvoll.de>:
Bug#905564.
(Tue, 29 Dec 2020 16:21:02 GMT) (full text, mbox, link).
From: Chris Hofstaedtler <noreply@salsa.debian.org>
To: 905564-submitter@bugs.debian.org
Subject: Bug#905564 marked as pending in util-linux
Date: Tue, 29 Dec 2020 16:16:54 +0000
Control: tag -1 pending
Hello,
Bug #905564 in util-linux reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:
https://salsa.debian.org/debian/util-linux/-/commit/dd962b56879446d2bdd12675b6f07f380e84db03
------------------------------------------------------------------------
Update advice on ALWAYS_SET_PATH to use /etc/default/su
Closes: #905564
------------------------------------------------------------------------
(this message was generated automatically)
--
Greetings
https://bugs.debian.org/905564
Added tag(s) pending.
Request was from Chris Hofstaedtler <noreply@salsa.debian.org>
to 905564-submitter@bugs.debian.org.
(Tue, 29 Dec 2020 16:21:02 GMT) (full text, mbox, link).
Reply sent
to Chris Hofstaedtler <zeha@debian.org>:
You have taken responsibility.
(Tue, 29 Dec 2020 16:36:03 GMT) (full text, mbox, link).
Notification sent
to Martin Steigerwald <Martin@Lichtvoll.de>:
Bug acknowledged by developer.
(Tue, 29 Dec 2020 16:36:03 GMT) (full text, mbox, link).
Source: util-linux
Source-Version: 2.36.1-4
Done: Chris Hofstaedtler <zeha@debian.org>
We believe that the bug you reported is fixed in the latest version of
util-linux, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 905564@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Chris Hofstaedtler <zeha@debian.org> (supplier of updated util-linux package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Tue, 29 Dec 2020 15:46:26 +0000
Source: util-linux
Architecture: source
Version: 2.36.1-4
Distribution: unstable
Urgency: medium
Maintainer: util-linux packagers <util-linux@packages.debian.org>
Changed-By: Chris Hofstaedtler <zeha@debian.org>
Closes: 905564977871
Changes:
util-linux (2.36.1-4) unstable; urgency=medium
.
* bsdextrautils: Install colcrt (Closes: #977871)
* hwclock.sh: remove obsolete startup code.
Let the on startup code always be handled by the udev rule we install.
On any normal system, systemd or sysvinit, "hwclock.sh start" was a
no-op for the last few Debian releases already. Also, with initramfs,
hwclock.sh never got executed *before* fsck for root.
If your system does not have udev but has an RTC in localtime or one
needing drift adjustments, you will need to handle this yourself.
* hwclock: remove all broken settings.
Since buster, BADYEAR was broken, because upstream removed the code in
v2.30-rc1.
Since buster, the alpha cmos support was broken, because upstream
removed the code.
Since stretch, HWCLOCKACCESS=no was broken on udev systems, because the
helper ignored it.
Remove all those settings; also remove HCTOSYS_DEVICE from the
default-shipped /etc/default/hwclock, as changing it is extremely
difficult to get right.
* hwclock.sh: add comments when to use this init script
* Update advice on ALWAYS_SET_PATH to use /etc/default/su (Closes: #905564)
* Remove Suggests: console-tools. Gone since 2013.
Checksums-Sha1:
d64912f0b9dcf627bbd76c878a18b3fae175260e 4337 util-linux_2.36.1-4.dsc
0a2686430fc939183a8964ed93f8855c0e2d2980 96508 util-linux_2.36.1-4.debian.tar.xz
c07e05e00099e7847a2d53c63066208695664222 7062 util-linux_2.36.1-4_source.buildinfo
Checksums-Sha256:
4fe21d2f29bde0427813197d7e0168cad29b3f83c45ab6996905e02238dbd62c 4337 util-linux_2.36.1-4.dsc
06867ed26a4626a71b609b5db9e45284e8e0cf1834b11526b7e02e20adf78576 96508 util-linux_2.36.1-4.debian.tar.xz
9bdb51593a0f4148d7dcfc6a6cd931f14145ef069e9a44f8c0dcc2c63b8645a4 7062 util-linux_2.36.1-4_source.buildinfo
Files:
d5e819dd2b3d593151431ac937552f02 4337 base required util-linux_2.36.1-4.dsc
425102c22fb552e843185266dc550a0d 96508 base required util-linux_2.36.1-4.debian.tar.xz
7327f227db9640074fc8c428d69a7502 7062 base required util-linux_2.36.1-4_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEfRrP+tnggGycTNOSXBPW25MFLgMFAl/rVlkACgkQXBPW25MF
LgMDcQ/+MRNzaCLp8iUs2YlmSxbRNPeZAOOtHBTTadk3CReqM5o1IRLChghYL3/W
UOUV4L0ExXeGWMPXPE2vEvHEj6U0i0ywW45kNHts6SgZGH5iBcJEQivKwmIq5FfQ
NwjuUu+eKPmOejbX2dTjjU3QFtCNqINLJ8iHmwwGuqCr/R4ULgHk3AX3KC1x+a+k
yMfcVL4+GuXdMf8c8Xf0E7kPG4eZlWSFZTAfcp8oNjT8nFpbM5hDDQkujZQGHWzC
uvRyKA86pLK4bprk1nudq8IsJVafABKGW7cwHOm4E4RP5LpVdN+2TbuAJXScY7lO
qsaitBovxGiifjt/ZjSLvxxD14ofZUSmvsQO4zZqqVljrLwKHqyz2a2N1NAiNJek
Ip40rdWxMkfDGJSaTRCxMfJF/Ec0/eULQmE2IqyGBhNftSrK3YZRdxDzVwpF+ZOc
lIZZHCZhDrugyxB36wRm2KOnUyewmJEVJr3ttx+fqa+t7TziLKCpLBT+oeV69gYJ
ctfsKjrhmoDdXVWvJvfQpf70cIXytx1uXoaAKwuWAWaTngZFvnlfY84lyG/MnnzX
hHVvnF9INIYKUYVUfSdxBJ0W4gkYY0wEI5Xc/e2OyucLdC7z9Cf6yMX7Qr748DSN
i02JExMBmkRGWQpfr3VjfhD7PMmSe8NvrmV23aw41Mhnjah+eDo=
=WeBG
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Mon, 08 Feb 2021 07:29:19 GMT) (full text, mbox, link).
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.