Comment 27 for bug 870297

Revision history for this message
Alex Bachmeier (cebalrai) wrote : Re: Lightdm logins not being logged in wtmp

I can still reproduce this on my lab machines with all updates installed.

Mar 26 12:05:28 $HOSTNAME lightdm: pam_unix(lightdm:session): session opened for user $USER by (uid=0)
Mar 26 12:05:28 $HOSTNAME lightdm: pam_ck_connector(lightdm:session): nox11 mode, ignoring PAM_TTY :0
Mar 26 12:05:32 $HOSTNAME polkitd(authority=local): Registered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session2 (system bus name :1.41 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)

while last shows nothing:
---# last -n 10
root pts/0 devel01.informat Mon Mar 26 12:52 still logged in
reboot system boot 3.2.0-20-generic Mon Mar 26 12:05 - 12:54 (00:49)
reboot system boot 3.2.0-20-generic Mon Mar 26 12:02 - 12:54 (00:51)
reboot system boot 3.2.0-20-generic Mon Mar 26 12:00 - 12:54 (00:53)

w only shows my ssh session
---# w
 12:54:58 up 50 min, 1 user, load average: 0.00, 0.01, 0.05
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 $REMOTE_HOST 12:52 0.00s 0.38s 0.00s w

console kit can display the session:

---# ck-list-sessions
Session2:
        unix-user = '14443'
        realname = 'Meow Meow'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2012-03-26T10:05:28.151601Z'
        login-session-id = '4294967295'