You are not logged in.
Hello, after the latest xorg update my automounting as well as my shutdown/reboot options from XFCE's logout dialog stopped working. I can't also mount other partitions as non-root user. This is one of the most common problems that appear once in a while and I usually tweak my .xinitrc and/or pam.d files to get functionality back, but this time I have no luck. My display manager is plain XDM. I should mention that if I startx from a tty everything is working properly.
Relevant files
.xinitrc
xrdb -merge ~/.Xdefaults
exec ck-launch-session dbus-launch --auto-syntax --exit-with-session startxfce4
/etc/pam.d/xdm
auth required pam_unix.so
auth required pam_nologin.so
auth required pam_env.so
auth optional pam_gnome_keyring.so
account required pam_unix.so
password required pam_unix.so
session required pam_unix.so
session optional pam_loginuid.so
session optional pam_ck_connector.so nox11
session optional pam_gnome_keyring.so auto_start
session required pam_limits.so
/etc/pam.d/login
auth required pam_securetty.so
auth requisite pam_nologin.so
auth required pam_unix.so nullok
auth required pam_tally.so onerr=succeed file=/var/log/faillog
account required pam_access.so
account required pam_time.so
account required pam_unix.so
session required pam_unix.so
session required pam_env.so
session required pam_motd.so
session required pam_limits.so
session optional pam_mail.so dir=/var/spool/mail standard
session optional pam_lastlog.so
session optional pam_loginuid.so
-session optional pam_ck_connector.so nox11
# session optional pam_ck_connector.so # same results as above with this
Output of ck-list-sessions
Session8:
unix-user = '1000'
realname = '...'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-10-12T23:08:23.442789Z'
login-session-id = '4'
Session9:
unix-user = '1000'
realname = '...'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = ''
remote-host-name = ''
is-local = TRUE
on-since = '2011-10-12T23:08:23.554858Z'
login-session-id = '4'
and the groups I'm in
disk lp wheel utmp network video audio optical storage power users vboxusers foucault sentaurus
Any ideas? Could this be an XDM issue or any misconfiguration? The same thing happens with slim as well. I could really use some help here. All four bullets mentioned in the wiki are true.
Thanks in advance!
Last edited by Foucault (2011-10-12 23:36:53)
Offline
I had this issue since an upgrade last few days. But the problem seems to have solved by itself. After I did these things the problem was solved, although I doubt if it really had any direct effect: I reinstalled polkit and shadow, rebooted, issued 'ck-list-sessions' both before and after starting x.
Now if I issue 'ck-list-sessions' within x I get:
Session1:
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 = '2011-11-08T17:38:35.613501Z'
login-session-id = '1'
idle-since-hint = '2011-11-08T17:39:39.685144Z'
Session2:
unix-user = '1000'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = TRUE
x11-display = ':0'
x11-display-device = '/dev/tty7'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = TRUE
on-since = '2011-11-08T17:39:15.580472Z'
login-session-id = '1'
Before I only got a session with "active = FALSE"
Last edited by rwd (2011-11-08 17:57:20)
Offline
I have the same issues with Slim. I can get shutdown/suspend/hibernate/reboot back if I downgrade xfce4-session to 4.8.2-1. Things work if go to runlevel 3 and use startx.
Offline
The problem seems to reappear. The changelogs for xfce4-session 4.8.2-2 say: "Remove .pkla files; shutdown/suspend/etc should continue to work for people with correct ConsoleKit sessions."
So I need a consolekit session to be able to shutdown. However if I start xfce with no displaymanager using 'exec ck-launch-session startxfce4' in my .xinitrc. and check my sessions with 'ck-list-sessions' I get:
Session2:
unix-user = '1001'
realname = '(null)'
seat = 'Seat1'
session-type = ''
active = FALSE
x11-display = ''
x11-display-device = ''
display-device = '/dev/tty2'
remote-host-name = ''
is-local = TRUE
on-since = '2011-11-21T18:13:26.929832Z'
login-session-id = '2'
idle-since-hint = '2011-11-21T18:13:58.225846Z'
Session4:
unix-user = '1000'
realname = '(null)'
seat = 'Seat3'
session-type = ''
active = FALSE
x11-display = ':0'
x11-display-device = '/dev/tty8'
display-device = '/dev/tty1'
remote-host-name = ''
is-local = FALSE
on-since = '2011-11-21T18:19:24.067561Z'
login-session-id = '1'
That would explain why I can't shutdown, but it makes me wonder how do I get get a valid session. The wiki on consolekit seems to imply that I need a displaymanager, but I rather would not use one. Does anyone know how to fix this?
Last edited by rwd (2011-11-21 22:58:56)
Offline