Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lightdm and ConsoleKit session type
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ebichu
Apprentice
Apprentice


Joined: 03 Jul 2002
Posts: 231
Location: Manchester, England

PostPosted: Tue Aug 27, 2013 5:53 pm    Post subject: lightdm and ConsoleKit session type Reply with quote

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
View user's profile Send private message
bec
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2004
Posts: 146
Location: Cali - Colombia

PostPosted: Wed Aug 28, 2013 8:02 pm    Post subject: Reply with quote

There is a bug report on that issue:

https://bugs.gentoo.org/show_bug.cgi?id=479660
_________________
abe
Back to top
View user's profile Send private message
ebichu
Apprentice
Apprentice


Joined: 03 Jul 2002
Posts: 231
Location: Manchester, England

PostPosted: Thu Aug 29, 2013 9:50 am    Post subject: Reply with quote

Thanks! I should have checked that first. ;)
_________________
Ebichu wa chiizu ga daisuki dechu!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum