Ok, pam-ck-connector is creating an additional CK session now, which I
don't think it is meant to be doing. I turned on debug and logged in
again, and this is what I see:

Sep 15 23:18:33 farnsworth lightdm: pam_ck_connector(lightdm:session): using 
1000 as uid
Sep 15 23:18:33 farnsworth lightdm: pam_ck_connector(lightdm:session): open 
session result: 1
Sep 15 23:18:33 farnsworth lightdm: pam_ck_connector(lightdm:session): 
registered uid=1000 on tty='/dev/tty7' with ConsoleKit

This shouldn't happen, because we use the "nox11" option for pam-ck-
connector.

This has started because of this commit: http://bazaar.launchpad.net
/~lightdm-team/lightdm/trunk/revision/1144

The problem seems to be that pam-ck-connector expects PAM_TTY to contain
the X display, rather than the tty device path. It then bails out if it
interprets this item as an X display:

        if (strchr (display_device, ':') != NULL) {
                if (opt_nox11) {
                        ck_pam_syslog (pamh, LOG_WARNING, "nox11 mode, ignoring 
PAM_TTY %s", display_device);
                        goto out;
                }
                x11_display = display_device;
                display_device = "";

Because PAM_TTY is /dev/tty7 for me, it goes ahead and creates a CK
session

(FTR, before the lightdm update, pam-ck-connector bailed out with
"pam_ck_connector(lightdm:session): cannot determine display-device")

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/851055

Title:
  [Oneiric] 'Not Authorized' error given when mounting device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/851055/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to