You are not logged in.

#1 2012-11-02 22:02:10

sudoku
Member
Registered: 2012-10-31
Posts: 96

[SOLVED] SLiM - Rebooting woes after switching from ConsoleKit

Hi folks,

I am sharing a machine with another user. Since I have switched to systemd-logind, I am being asked for authentication in order to reboot.

I use XFCE and SLiM.

To reproduce:

1) login user1
2) logout user1
3) login user2
4) attempt to reboot/shutdown

Now a popup will say that authentication is required to reboot while other users are logged in.

According to 'who' and 'users', only user2 is logged in. 'loginctl' disagrees, though.

[user1@sudoku ~]$ who
user1 pts/0        2012-11-03 10:45 (:0.0)
[user1@sudoku ~]$ users
user1
[user1@sudoku ~]$ loginctl list-sessions
   SESSION        UID USER             SEAT            
         1       1000 user1       seat0           
         2       1001 user2           seat0                   

2 sessions listed.

Here is also my .xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec startxfce4

Has anyone got an idea why I am being asked to authenticate even though I am supposed to be the only logged-in user?

Thank you!

Last edited by sudoku (2012-11-04 06:34:22)

Offline

#2 2012-11-02 22:08:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,694

Re: [SOLVED] SLiM - Rebooting woes after switching from ConsoleKit

The logind session will close after everything in it shuts down. If it's still there, something's hanging; do a loginctl session-status to see what's still running.

Online

#3 2012-11-03 01:13:51

sudoku
Member
Registered: 2012-10-31
Posts: 96

Re: [SOLVED] SLiM - Rebooting woes after switching from ConsoleKit

Thanks for your answer. This is what I get.

[user2@sudoku ~]$ loginctl list-sessions
   SESSION        UID USER             SEAT            
         1       1001 user1           seat0           
         2       1000 user2       seat0           

2 sessions listed.
[user2@sudoku ~]$ loginctl session-status 1
1 - user1 (1001)
           Since: Sat, 2012-11-03 14:11:33 NZDT; 2min 10s ago
          Leader: 289 (slim)
            Seat: seat0; vc7
         Display: :0.0
          Remote: user root
         Service: slim; type x11; class user
           State: closing
          CGroup: name=systemd:/user/user1/1
                  ├ 552 /usr/lib/gvfs/gvfsd-trash --spawner :1.5 /org/gtk/gvfs/exec_spaw/0
                  └ 750 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
                  ‣ 289 /usr/bin/slim -nodaemon

There are still a couple of processes going on in a session that's supposed to be finished. Apparently they are not letting the other user reboot.

What can I do to have logind correctly kill all the processes before logging out?

Last edited by sudoku (2012-11-03 06:10:41)

Offline

#4 2012-11-03 07:55:19

sudoku
Member
Registered: 2012-10-31
Posts: 96

Re: [SOLVED] SLiM - Rebooting woes after switching from ConsoleKit

The problem was SLiM so in the end I removed it. LXDM kills sessions fine: https://wiki.archlinux.org/index.php/LX … t_Behavior.

Last edited by sudoku (2012-11-03 09:01:20)

Offline

Board footer

Powered by FluxBB