LINUX.ORG.RU

История изменений

Исправление Pinkbyte, (текущая версия) :

А ты откуда запускаешь ck-list-sessions? Из tty? Потому что у меня так:

Из иксов, логин только в иксы:

pinkbyte@phantom ~ $ ck-list-sessions 
Session1:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2016-06-17T08:05:54.892829Z'
        login-session-id = '

Из иксов после доп. логина в tty1:

pinkbyte@phantom ~ $ ck-list-sessions 
Session11:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty1'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2016-06-17T14:16:13.557074Z'
        login-session-id = ''
Session1:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2016-06-17T08:05:54.892829Z'
        login-session-id = ''

Та же команда, но из tty1

pinkbyte@phantom ~ $ ck-list-sessions 
Session11:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty1'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2016-06-17T14:16:13.557074Z'
        login-session-id = ''
Session1:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2016-06-17T08:05:54.892829Z'
        login-session-id = ''

Собственно параметр active ведет себя так как надо. Конфигурация system-login в pam у нас с тобой одинаковая

Исправление Pinkbyte, :

А ты откуда запускаешь ck-list-sessions? Из tty? Потому что у меня так:

Из иксов, логин только в иксы:

pinkbyte@phantom ~ $ ck-list-sessions 
Session1:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2016-06-17T08:05:54.892829Z'
        login-session-id = '

Из иксов после доп. логина в tty1:

pinkbyte@phantom ~ $ ck-list-sessions 
Session11:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty1'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2016-06-17T14:16:13.557074Z'
        login-session-id = ''
Session1:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2016-06-17T08:05:54.892829Z'
        login-session-id = ''

Та же команда, но из tty1

pinkbyte@phantom ~ $ ck-list-sessions 
Session11:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty1'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2016-06-17T14:16:13.557074Z'
        login-session-id = ''
Session1:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2016-06-17T08:05:54.892829Z'
        login-session-id = ''

Исходная версия Pinkbyte, :

А ты откуда запускаешь ck-list-sessions? Из tty1?