Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #163028

Debian 8: Shutdown, Reboot, Suspend und Hibernate only after entering root password

From "Christoph Pleger" <Christoph.Pleger@cs.tu-dortmund.de>
Newsgroups linux.debian.user
Subject Debian 8: Shutdown, Reboot, Suspend und Hibernate only after entering root password
Date 2016-01-14 16:20 +0100
Message-ID <qQRQT-rb-23@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

Some days ago, I installed some machines with Debian jessie. Now I want to
achieve that, from the different desktop environments (KDE, GNOME, etc.),
the computers can only be shutdown, rebooted, suspended or hibernated,
after entering the root password.

In Debian 7, I achieved that by creating a file
/etc/polkit-1/localauthority/50-local.d/custom-menu.pkla with the
following contents:

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

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

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

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


In Debian 8, this does not have the desired effect any more. Obviously,
the names of the actions have been changed to
org.freedesktop.login1.reboot etc., but even after replacing the action
names in custom-menu.pkla accordingly, no root authentication is required
before shutting down the computers.

So, what is the correct way to achieve my goal in jessie?

Viele Grüße
  Christoph

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Debian 8: Shutdown, Reboot, Suspend und Hibernate only after  entering root password "Christoph Pleger" <Christoph.Pleger@cs.tu-dortmund.de> - 2016-01-14 16:20 +0100
  Re: Debian 8: Shutdown, Reboot, Suspend und Hibernate only after  entering root password Floris <jkfloris@dds.nl> - 2016-01-14 16:50 +0100
  Re: Debian 8: Shutdown, Reboot, Suspend und Hibernate only after  entering root password Brian <ad44@cityscape.co.uk> - 2016-01-14 16:50 +0100
    Re: Debian 8: Shutdown, Reboot, Suspend und Hibernate only after entering root password deloptes <deloptes@yahoo.com> - 2016-01-14 20:50 +0100

csiph-web