Mailinglist Archive: opensuse-factory (818 mails)

< Previous Next >
Re: [opensuse-factory] Beta 3: Desktop machine hibernated on its own
  • From: Ludwig Nussel <ludwig.nussel@xxxxxxx>
  • Date: Mon, 27 Oct 2008 10:32:31 +0100
  • Message-id: <200810271032.32104.ludwig.nussel@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >