On lun., 2010-09-27 at 09:32 +0200, Michael Biebl wrote:
> ust to be sure: the case that does not work is:
> You login on the console, then run startx, right?

This one works fine when pam-ck-connector is installed (even without
loginuid), which is expected. The not working case is login with a
display manager without CK support (like slim and xdm), where consolekit
is started from /etc/X11/Xsession.d/90consolekit.
> 
> Have you checked with ck-list-sessions, if login-session-id is not
> empty, after
> login?

Yes, it's not.
> 
> My guess is, that the order in /etc/pam.d/common-session is important.
> Try to
> load pam_loginuid.so *before* pam_ck_connector.so. 

Doesn't work either, but as pam-ck-connector is not used in slim case,
that's expected too.

I've attached the results of various experiments.

Cheers,
-- 
Yves-Alexis
slim, libpam-ck-connector, patched consolekit:

Session1:
  unix-user = '1000'
  realname = 'Yves-Alexis Perez'
  seat = 'Seat1'
  session-type = ''
  active = TRUE
  x11-display = ':0.0'
  x11-display-device = '/dev/tty7'
  display-device = ''
  remote-host-name = ''
  is-local = TRUE
  on-since = '2010-10-10T09:17:21.729434Z'
  login-session-id = '4294967295'

console, libpam-ck-connector, patched consolekit:

Session3:
        unix-user = '1000'
        realname = 'Yves-Alexis Perez'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty2'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2010-10-10T09:20:03.673558Z'
        login-session-id = '4294967295'

startx, libpam-ck-connector, patched consolekit:

Session3:
        unix-user = '1000'
        realname = 'Yves-Alexis Perez'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty2'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2010-10-10T09:20:03.673558Z'
        login-session-id = '4294967295'
Session4:
        unix-user = '1000'
        realname = 'Yves-Alexis Perez'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty8'
        display-device = '/dev/tty2'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2010-10-10T09:20:28.709150Z'
        login-session-id = '4294967295'

slim, libpam-ck-connector, unpatched consolekit:

Session1:
        unix-user = '1000'
        realname = 'Yves-Alexis Perez'
        seat = 'Seat2'
        session-type = ''
        active = FALSE
        x11-display = ':0.0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = FALSE
        on-since = '2010-10-10T09:24:18.597973Z'
        login-session-id = '4294967295'

console, libpam-ck-connector, unpatched consolekit:

Session3:
        unix-user = '1000'
        realname = 'Yves-Alexis Perez'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty2'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2010-10-10T09:29:31.734155Z'
        login-session-id = '4294967295'

startx, libpam-ck-connector, unpatched consolekit:

Session3:
        unix-user = '1000'
        realname = 'Yves-Alexis Perez'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ''
        x11-display-device = ''
        display-device = '/dev/tty2'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2010-10-10T09:29:31.734155Z'
        login-session-id = '4294967295'
        idle-since-hint = '2010-10-10T09:30:26.017625Z'
Session4:
        unix-user = '1000'
        realname = 'Yves-Alexis Perez'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty8'
        display-device = '/dev/tty2'
        remote-host-name = ''
        is-local = TRUE
        on-since = '2010-10-10T09:29:57.714119Z'
        login-session-id = '4294967295'

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

Reply via email to