View previous topic :: View next topic |
Author |
Message |
ebichu Apprentice
Joined: 03 Jul 2002 Posts: 231 Location: Manchester, England
|
Posted: Tue Aug 27, 2013 5:53 pm Post subject: lightdm and ConsoleKit session type |
|
|
I generally use gdm as my X11 display manager but because it started locking up on me after an update (I'll solve that eventually!) I thought I'd give lightdm a try.
lightdm seems to work great for me except for one thing - my ConsoleKit session is treated as "inactive" so that things like attempting to mount external filesystems (the "org.freedesktop.udisks2.filesystem-mount" action in polkit) requires me to supply the root password, which it shouldn't by default for a local user.
This is the output of ck-list-sessions when I log in with lightdm:
Code: |
Session4:
unix-user = '1000'
realname = 'Ian Abbott'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = ':0'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2013-08-27T16:44:18.063320Z'
login-session-id = '4'
|
For comparison, this is the output of ck-list-sessions when I log in with kdm:
Code: |
Session7:
unix-user = '1000'
realname = 'Ian Abbott'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2013-08-27T16:46:26.130484Z'
login-session-id = '5'
|
The main differences are the settings of 'active' and 'x11-display-device'.
I wonder if it's something to do with the /etc/pam.d/lightdm file, which appears to be from upstream but with extra stuff tacked on the end by the pamd_mimic function in /usr/portage/eclass/pam.eclass? the resulting /etc/pam.d/lightdm looks like this:
Code: |
#%PAM-1.0
# Block login if they are globally disabled
auth required pam_nologin.so
# Load environment from /etc/environment and ~/.pam_environment
auth required pam_env.so
# Use /etc/passwd and /etc/shadow for passwords
auth required pam_unix.so
# Check account is active, change password if required
account required pam_unix.so
# Allow password to be changed
password required pam_unix.so
# Setup session
session required pam_unix.so
session optional pam_systemd.so
# File autogenerated by pamd_mimic in pam eclass
auth include system-local-login
account include system-local-login
session include system-local-login
|
I'll try commenting out the bit before the autogenerated part and see if it makes any difference. EDIT: I just tried that (and rebooted) but it made no difference.
Is anyone else having the same trouble with lightdm and ConsoleKit sessions being "inactive"? Has anyone solved it? I'm using lightdm-1.7.9 and lightdm-gtk-greeter-1.6.0. _________________ Ebichu wa chiizu ga daisuki dechu! |
|
Back to top |
|
|
bec Apprentice
Joined: 30 Sep 2004 Posts: 220 Location: Cali - Colombia
|
|
Back to top |
|
|
ebichu Apprentice
Joined: 03 Jul 2002 Posts: 231 Location: Manchester, England
|
Posted: Thu Aug 29, 2013 9:50 am Post subject: |
|
|
Thanks! I should have checked that first. _________________ Ebichu wa chiizu ga daisuki dechu! |
|
Back to top |
|
|
|