FS#13444 - [coreutils 7.1] su doesn't work anymore
Attached to Project:
Arch Linux
Opened by Corrado Primier (bardo) - Tuesday, 24 February 2009, 22:26 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 06 March 2009, 22:19 GMT
Opened by Corrado Primier (bardo) - Tuesday, 24 February 2009, 22:26 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 06 March 2009, 22:19 GMT
|
Details
When an unprivileged tries to switch user, su always returns
"incorrect password". Since root can su regularly, to me it
looks like some kind of incompatibility with the pam_unix.so
module: /etc/pam.d/su did not change between the two
revisions, and pam_rootok.so works.
Downgrading to 6.12 fixes the problem. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Friday, 06 March 2009, 22:19 GMT
Reason for closing: Fixed
Additional comments about closing: In 7.1-1.1
Friday, 06 March 2009, 22:19 GMT
Reason for closing: Fixed
Additional comments about closing: In 7.1-1.1
Using testing packages, don't have this problem. Under vbox (Fresh install of Arch Linux, default settings)
I can do "su - userX" or "su -" from userZ, without problems, logged from console or ssh.
Are you under X, from a X login manager?
This is because bad perms, su in x86_64 not have SETUID :)
Modus von „/tmp/coreutils/trunk/pkg/bin/su“ als 4555 (r-sr-xr-x) erhalten
==> Säubere Installation...
-> Komprimiere Man-Pages...
-> Entferne Debugging-Symbole aus Binär-Dateien und Bibliotheken...
-> Entferne leere Verzeichnisse...
==> Erstelle Paket ...
-> Erstelle .PKGINFO-Datei...
-> Füge Installations-Skript hinzu...
-> Komprimiere Paket ...
==> Verlasse fakeroot-Umgebung.
==> Beendete make: coreutils 7.1-1.1 x86_64 (Mi 25. Feb 16:47:58 UTC 2009)
real 2m46.340s
user 2m13.751s
sys 0m52.420s
[andyrtr@workstation64 trunk]$ ls -lha pkg/bin/su
-rwxr-xr-x 1 andyrtr users 40K 25. Feb 16:47 pkg/bin/su
The permission is ok before leaving the fakechroot. I guess this is either a fakeroot or makepkg bug. Adding Dan to the assignies.
[djgera@arch64 coreutils]$ tar tvf coreutils-7.1-1-x86_64.pkg.tar.gz | grep "bin/su$"
-r-sr-xr-x root/root 40824 2009-02-25 16:03 bin/su
I will recompile again some times, maybe a random "fakeroot" bug...
But maybe a good idea is to put a .install file to ensure te setuid bit.