[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shutdown/Reboot verhindern, wenn noch andere eingeloggt sind



Hallo,

hmm, die erste Mail ging irgendwie schief. Ich hatte die Mail in icedove
angefangen und dann in mutt fertig geschrieben. Also nochmal:

Ich will verhindern, dass ein Rechner (sowohl mit Jessie als auch mit
Stretch) heruntergefahren wird, wenn noch andere eingeloggt sind.

Ich denke ich muss policykit da konfigurieren und habe deswegen die
Datei /etc/polkit-1/localauthority/50-local.d/shutdown.pkla mit
folgendem Inhalt angelegt:

	[Power off the system while other users are logged in]
	Identity=unix-user:*
	Action=org.freedesktop.login1.power-off-multiple-sessions;org.freedesktop.login1.reboot-multiple-sessions
	ResultActive=auth_admin_keep

Das klappt aber nicht, auch nach einem Reboot kann ich noch immer ohne
Passworteingabe herunterfahren, und ich bekomme auch noch:

	$ pkaction --verbose --action-id org.freedesktop.login1.power-off-multiple-sessions
	org.freedesktop.login1.power-off-multiple-sessions:
	  description:       Power off the system while other users are logged in
	  message:           Authentication is required for powering off the system while other users are logged in.
	  vendor:            The systemd Project
	  vendor_url:        http://www.freedesktop.org/wiki/Software/systemd
	  icon:              
	  implicit any:      auth_admin_keep
	  implicit inactive: auth_admin_keep
	  implicit active:   yes
	  annotation:        org.freedesktop.policykit.imply -> org.freedesktop.login1.power-off

Eigentlich würde ich erwarten, dass da statt "yes" bei "implicit active" auch
"auth_admin_keep" stehen müsste.

Sieht jemand wo mein Fehler ist? Bin ich da überhaupt auf der richtigen
Spur?

Mit freundlichen Grüßen
Uwe Kleine-König

Attachment: signature.asc
Description: PGP signature


Reply to: