[Pkg-shadow-devel] Bug#659957: login: login at console no longer updates utmp
Johan Kullstam
kullstam at verizon.net
Wed Feb 15 10:23:06 UTC 2012
Package: login
Version: 1:4.1.5-1
Severity: normal
Dear Maintainer,
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.
So, if I log into console number 2, I get this
jk at emmy:~$ tty
/dev/tty2
jk at emmy:~$ logname
LOGIN
jk at emmy:~$ who
jk at emmy:~$ w
05:16:29 up 7 min, 0 users, load average: 0.09, 0.25, 0.14
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
jk at emmy:~$ who -a
2012-02-15 05:09 559 id=si term=0 exit=0
system boot 2012-02-15 05:09
run-level 2 2012-02-15 05:09 last=S
2012-02-15 05:09 1725 id=l2 term=0 exit=0
LOGIN tty1 2012-02-15 05:09 2169 id=1
LOGIN tty5 2012-02-15 05:09 2173 id=5
LOGIN tty4 2012-02-15 05:09 2172 id=4
LOGIN tty6 2012-02-15 05:09 2174 id=6
LOGIN tty2 2012-02-15 05:09 2170 id=2
LOGIN tty3 2012-02-15 05:09 2171 id=3
This is probably related to fixing "#605329 [login] login on console
creates duplicate wtmp entry"
While pam_logout writes to wtmp on log-OUT, it, as far as I can tell,
does not write to utmp when you log IN. Maybe I am doing it wrong,
please advise.
This breaks some other software, e.g., sawfish which produces a
directory /tmp/.sawfish-LOGIN instead of /tmp/.sawfish-jk. The
sawfish-pager breaks by looking for the latter.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.6 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages login depends on:
ii libc6 2.13-26
ii libpam-modules 1.1.3-7
ii libpam-runtime 1.1.3-7
ii libpam0g 1.1.3-7
login recommends no packages.
login suggests no packages.
-- no debconf information
More information about the Pkg-shadow-devel
mailing list