You are not logged in.

#1 2012-05-25 20:08:05

artiom
Member
From: France
Registered: 2008-07-29
Posts: 111

PolicyKit: How to allow a non admin user to kill his X session

I would like to know how to configure PolicyKit in order to give a non admin user the possibility to kill his session with Ctrl-Alt-Backspace.
It is already works for one account marked as admin, and I need to give this authorisation to all users without making them admins.

Offline

#2 2012-05-25 23:12:46

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: PolicyKit: How to allow a non admin user to kill his X session

Well, maybe not PolicyKit, but

setxkbmap -option terminate:ctrl_alt_bksp &

in my .xinitrc works for me.

Offline

#3 2012-05-26 10:42:23

artiom
Member
From: France
Registered: 2008-07-29
Posts: 111

Re: PolicyKit: How to allow a non admin user to kill his X session

It is the X server option and it works if I execute it in the terminal of the running session, but not in the .xinitrc. I have nothing like this for one of my accounts to be able to do Ctrl-Alt-Backspace. So it should be a PolicyKit option or something else

Last edited by artiom (2012-05-26 10:42:51)

Offline

#4 2012-05-26 11:45:51

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: PolicyKit: How to allow a non admin user to kill his X session

WIthout resorting to setting up permissions to allow only certain users, I have Ctrl-Alt-Backspace zapping set up for all users, on a two-user machine, using this:

$ cat /etc/X11/xorg.conf.d/30-dontzap.conf
#
# Restores the old behavior that uses Ctrl-Alt-Backspace to end the X session.

Section "InputClass"
        Identifier "Keyboard Defaults"
        MatchIsKeyboard "yes"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Offline

#5 2012-06-01 20:43:25

artiom
Member
From: France
Registered: 2008-07-29
Posts: 111

Re: PolicyKit: How to allow a non admin user to kill his X session

It's the same - Xorg config. PolicyKit is started after X and reconfigure it.
So, still don't work.

Offline

#6 2012-06-04 19:39:42

artiom
Member
From: France
Registered: 2008-07-29
Posts: 111

Re: PolicyKit: How to allow a non admin user to kill his X session

I found my solution. You should enable it in the keyboard settings. There is an option "Key sequence to Kill X" to check in order to be able to use Ctrl-Alt-Backspace

Offline

Board footer

Powered by FluxBB