[Pkg-shadow-devel] Bug#659957: Bug#659957: login: login at console no longer updates utmp

Johan Kullstam kullstam at verizon.net
Wed Feb 15 22:24:38 UTC 2012

On 02/15/2012 03:21 PM, Nicolas François wrote:
> Hello,
> On Wed, Feb 15, 2012 at 05:23:06AM -0500, kullstam at verizon.net wrote:
>> I am logging in at the console and get no entry in utmp.  "who" and "w"
>> produce no output.  Using "who -a", I see that the tty is still
>> associated with the name "LOGIN".  "logname" at the console produces
>> "LOGIN" when on.
> Are you using pam_lastlog for login? (/etc/pam.d/login)

Sorry, I mistakenly called it pam_logout in the earlier email.

It, pam_lastlog, is in my /etc/pam.d/login (attached, and which I have 
not modified)

I see a line about the last login date/time when I do login just before 
the motd.  I presume this is from pam_lastlog.

The man page for pam_lastlog talks about wtmp and gives options for 
wtmp.  It is silent on the topic of utmp.

$ strings /lib/x86_64-linux-gnu/security/pam_lastlog.so | grep '[uw]tmp'

Nothing about utmp.

Googling pam_lastlog and utmp gives nothing useful.  I have not look at 
the source.

Johan Kullstam

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: login
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20120215/b0acd8cc/attachment.ksh>

More information about the Pkg-shadow-devel mailing list