systemd-logind is not honoring polickykit rules for suspend/reboot/shutdown

Bug #1310845 reported by William Van Hevelingen
60
This bug affects 24 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

systemd-logind is not honoring policy-kit rules put in place to prevent users from suspending, hibernatoring, or shuting down machines. These rules worked in Precise.

moss:~# cat /etc/polkit-1/localauthority/20-org.d/20-edu.pdx.cat.power.them.pkla
[deny-them-poweroff]
Identity=unix-group:*;
Action=org.freedesktop.consolekit.*;

ResultActive=no

moss:~# cat /etc/polkit-1/localauthority/20-org.d/20-org.freedesktop.upower.suspend.pkla
[deny-them-suspend]
Identity=unix-group:*;
Action=org.freedesktop.consolekit.*;

ResultActive=no

moss:~# cat //etc/polkit-1/localauthority/20-org.d/20-org.freedesktop.upower.hibernate.pkla
[deny-them-hibernate]
Identity=unix-group:*;
Action=org.freedesktop.consolekit.*;

ResultActive=no

Revision history for this message
Martin Pitt (pitti) wrote :

These actions were for ConsoleKit. logind has its own rules, so you need to rewrite them to enumerate org.freedesktop.login1.suspend and org.freedesktop.login1.hibernate (see /usr/share/polkit-1/actions/org.freedesktop.login1.policy).

Don't deny *all* methods of logind to users, though; that'll break some stuff and forbid way more than you intend.

Changed in systemd (Ubuntu):
status: New → Invalid
Revision history for this message
Gabriel A. Devenyi (gadevenyi) wrote :

What *should* the rules be for trusty.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.