Comment 46 for bug 838792

Henning Moll (drscott) wrote :

same here on 12.04 64bit. No auto-login.

Trying to shutdown from a (one and only) Desktop session just logs out to lightdm. There "shutdown" leads to nothing. No reaction. There is no other "real" session running. The output of ck-list-sessions:

Session4:
 unix-user = '123'
 realname = 'Cloudera Manager'
 seat = 'Seat1'
 session-type = ''
 active = FALSE
 x11-display = ''
 x11-display-device = ''
 display-device = '/dev/???'
 remote-host-name = ''
 is-local = TRUE
 on-since = '2012-07-07T16:21:25.747608Z'
 login-session-id = '4294967295'
Session5:
 unix-user = '1000'
 realname = 'foobar'
 seat = 'Seat1'
 session-type = ''
 active = FALSE
 x11-display = ''
 x11-display-device = ''
 display-device = '/dev/tty1'
 remote-host-name = ''
 is-local = TRUE
 on-since = '2012-07-07T16:21:51.036134Z'
 login-session-id = '4294967295'
 idle-since-hint = '2012-07-07T16:25:22.841253Z'

The latter sessions of course exists only because i need to start a tty login to run the command. So normaly there is only this user "123". The processes of that user are just some server processes.

After shutting them down (and closing my tty session) i am able to shutdown the system.

In my case (and for those reporting other server processes) the problem seems to be, that ConsoleKit (ck-list-session) threats some user processes as active user. How to fix this?