
Bernhard Walle wrote:
* Ludwig Nussel [2008-10-27 10:01]:
Carlos E. R. wrote:
Vincent Untz wrote:
gnome-power-manager has some inhibit mechanisms. This means an application can say "don't suspend" (eg, when you're burning a CD). And the user can also control this with an applet.
However, root should be able to control what power he gives the users over this. Root should be able to disable the ability of users to power off, reset, or hibernate the computer, or on the contrary, force an hibernation; and this regardless of what desktop the user is using.
# awk '/shutdown|reboot|hibernate|suspend/ {print $1 " auth_admin_keep_always"}' \ < /etc/polkit-default-privs.standard >> /etc/polkit-default-privs.local # set_polkit_default_privs
Is there a good documentation about Policykit that contains such stuff?
The above mechanism is basically a SUSE specific wrapper around polkit-action. See man polkit-default-privs and man polkit-action. cu Ludwig -- (o_ Ludwig Nussel //\ V_/_ http://www.suse.de/ SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org