On Wed, 2013-12-11 at 22:24 +0100, Laurent Bigonville wrote:
[...]
> The fact that you cannot reboot the machine if somebody else is logged
> in without root confirmation is a feature.

And rightly so.

> 
> Could you please post here the output of ck-list-sessions and the
> output of loginctl please.

Attached, that file was generated as follows:
1) from within session: ck-list-sessions >> filename
2) still same session: loginctl >> filename
3) 2 times: echo "-----" >> filename
4) logout
5) switch to tty1 (Alt+Ctrl+F1) and log in as regular user
6) ck-list-sessions >> filename
7) loginctl >> filename

I should have added a separator mark between all commands, but the
output seems readable nonetheless. Please correct me if I interpret this
wrong. ck-list-sessions first lists a single session, as does loginctl
(last line before the "-----"). After logging out and entering tty1,
ck-list-sessions shows 2 sessions (1 for gdm and 1 for me on the
console). But loginctl shows 3 lines, it still has that session with id
2 from before logging out of gnome. So it seems I was right about the
gnome session not terminating completely.

Best regards,
Steven
Session4:
        unix-user = '1000'
        realname = 'Steven Post'
        seat = 'Seat1'
        session-type = 'x11'
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = '/dev/tty7'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2013-12-11T20:09:22.238964Z'
        login-session-id = '2'
         2       1000 steven           seat0           
-----
-----
Session8:
        unix-user = '108'
        realname = 'Gnome Display Manager'
        seat = 'Seat1'
        session-type = 'x11'
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = '/dev/tty7'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2013-12-11T21:50:17.894819Z'
        login-session-id = '3'
Session9:
        unix-user = '1000'
        realname = 'Steven Post'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty1'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2013-12-11T21:50:31.825923Z'
        login-session-id = '4294967295'
         2       1000 steven           seat0           
         3        108 Debian-gdm       seat0           
        c5       1000 steven           seat0           

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to