Comment 39 for bug 432598

Revision history for this message
Cédric Dufour (cdufour-keyword-ubuntu-086000) wrote :

On Lucid, it would seem the /etc/polkit-1/* folders are not used.

Puting a power.conf file:

[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.devicekit.power.suspend
ResultActive=no
ResultAny=no

[Disable hibernate]
Identity=unix-user:*
Action=org.freedesktop.devicekit.power.hibernate
ResultActive=no
ResultAny=no

[Disable shutdown]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.stop
ResultActive=no
ResultAny=no

In:
 - /etc/polkit-1/localauthority/50-local.d
 - /etc/polkit-1/localauthority.conf.d

Does NOT affect the applied policy (cf. pkcheck and Gnome shutdown dialog)

Modifying the /usr/share/polkit-1/actions/* files DOES lead to the expected results (cf. pkcheck and Gnome shutdown dialog)

Am I:
 - missing something (like reloading a daemon somewhere)
 - or is this a bug; a sysadmin would expect his custom settings to be in /etc/polkit-1 and be honored (and not be erased by some package update) ?