Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#28543 - coreutils: `who' `users' no longer work

Attached to Project: Arch Linux
Opened by Tony Thedford (tonythed) - Monday, 20 February 2012, 13:14 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 25 February 2012, 15:53 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The commands `who' and `users' in core/coreutils 8.15-1 package no longer work.


Additional info:
* package version(s)

core/coreutils 8.15-1

core/linux 3.2.6-2


Steps to reproduce:

Enter either one of the following commands and no command output is produced:

tony@ws1 ~$ who
tony@ws1 ~$

tony@ws1 ~$ users
tony@ws1 ~$



This task depends upon

Closed by  Dave Reisner (falconindy)
Saturday, 25 February 2012, 15:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  testing/shadow-4.1.5-4
Comment by Ionut Biru (wonder) - Monday, 20 February 2012, 13:45 GMT
works for me. better try to see if your system wasn't compromised.
Comment by Gaetan Bisson (vesath) - Monday, 20 February 2012, 14:23 GMT
I can reproduce: boot your machine up, login to a tty, and type `who`; nothing shows up. Now if I login by SSH, I can see that session.
Comment by Devin J. Pohly (djpohly) - Monday, 20 February 2012, 18:46 GMT
I can confirm on x86_64, and downgrading shadow from 4.1.5-3 to 4.1.4.3-5 fixes the problem (after another login, of course).

Changelog for login(1) in shadow-4.1.5 shows:
* Do not log into utmp(x) or wtmp when PAM is enabled. This is done by pam_lastlog.

So is the pam_lastlog hook in /etc/pam.d/login not working?
Comment by Tony Thedford (tonythed) - Monday, 20 February 2012, 18:49 GMT
FYI - My systems aren't compromised and I can reproduce it on more than one computer (all at the same updates level).
Comment by Devin J. Pohly (djpohly) - Monday, 20 February 2012, 18:55 GMT
Aha, looks like it was a case of cerebral flatulence over at Debian:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659957#25

Should be fixed in next shadow.

Loading...