OOOoooooooooopppsss... Forgive me.

Your solution works : I just have to create 2 pkla files in /etc/polkit/
:

  tho...@zepo:~$ cat /etc/polkit-1/localauthority/50-local.d/01-enable.pkla 
  [Enable hibernate/suspend for the group hibersus]
  Identity=unix-group:hibersus 
  Action=org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate
  ResultActive=yes  
  ResultInactive=no
  ResultAny=no

  tho...@zepo:~$ cat /etc/polkit-1/localauthority/50-local.d/02-disable.pkla 
  [Disable hibernate/suspend for all groups]
  Identity=unix-group:*
  Action=org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate
  ResultActive=no
  ResultInactive=no
  ResultAny=no

and it works like a charm.

Sorry...
--
Thomas (and now I have to find how to erase a bugreport ... ;) )

** Changed in: policykit-1 (Ubuntu)
       Status: New => Invalid

-- 
cannot disable something for everyone except a group
https://bugs.launchpad.net/bugs/621416
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to