Hello,<br><br>I haven&#39;t found anywhere else to ask this question... so, here it is.<br><br>I want to disable the org.freedesktop.upower.hibernate action for all my users, except for a &quot;hibersus&quot; group.<br><br>
I try this pkla :<br><br><div>[Disable hibernate/suspend for all users]</div><div>Identity=unix-user:*</div><div>Action=org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate</div><div>ResultActive=no</div><div>ResultInactive=no</div>
<div>ResultAny=no</div><div><br></div><div>[Ensable hibernate/suspend for the group hibersus]</div><div>Identity=unix-group:hibersus</div><div>Action=org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate</div><div>
ResultActive=yes</div><div>ResultInactive=no</div><div>ResultAny=no</div><div><br></div><div>I found this file simple and logical... but it doesn&#39;t work, users in the hibersus group cannot hibernate. Reading &quot;man pklocalauthority&quot; I think the cause is the algorithm: unix-user:* takes precedence...</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>So, this is not really a question for polkit-dev (unless it is still time to change the algo, yes I know, I&#39;m dreaming) :</div><div>
how can I disable an action for everyone (user:*) except a group ?</div><div><br></div>Thanks,<br>-- <br>Thomas NOEL &lt;<a href="mailto:tom.noel@gmail.com">tom.noel@gmail.com</a>&gt;<br><br>