chiark / gitweb /
logind: Allow active sessions to always shutdown by default
authorAdel Gadllah <adel.gadllah@gmail.com>
Wed, 6 Feb 2013 13:24:56 +0000 (14:24 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Feb 2013 20:04:25 +0000 (21:04 +0100)
Currently local user are being asked for an admin  password when another
user is logged into the system. This does not make sense as the user has
the power to shut down the system anyway regardless if he/she knows the
password or not (by pulling the plug, battery or whatever).

So only require the admin authentification for remote sessions.

https://bugzilla.gnome.org/show_bug.cgi?id=693385

src/login/org.freedesktop.login1.policy.in

index b5f5db4f6ac6b14b1bb96e92c21b5b9a2f94e4d9..0c551d4f9bf77bd570b4daecf95424968685c4fe 100644 (file)
                 <defaults>
                         <allow_any>auth_admin_keep</allow_any>
                         <allow_inactive>auth_admin_keep</allow_inactive>
-                        <allow_active>auth_admin_keep</allow_active>
+                        <allow_active>yes</allow_active>
                 </defaults>
                 <annotate key="org.freedesktop.policykit.imply">org.freedesktop.login1.power-off</annotate>
         </action>