How to disable poweroff/reboot to users?
Ralf Mardorf
ralf.mardorf at alice-dsl.net
Sat Mar 18 09:14:37 CET 2017
On Sat, 18 Mar 2017 08:37:55 +0100, Ralf Mardorf wrote:
>Works on Arch Linux and I don't know a reason, why it shouldn't work on
>Ubuntu, too:
Respectively
On Fri, 17 Mar 2017 22:31:13 -0500, William Oquendo wrote:
>OS : Linux Slackware 14.2
;)
I confused this mailing list with the Xubuntu users list.
>[root at archlinux ~]#
>cat /etc/polkit-1/rules.d/10-admin-shutdown-reboot.rules
>polkit.addRule(function(action, subject) {
> if (action.id == "org.freedesktop.login1.power-off" ||
> action.id == "org.freedesktop.login1.power-off-ignore-inhibit"
> || action.id == "org.freedesktop.login1.power-off-multiple-sessions"
> || action.id == "org.freedesktop.login1.reboot" ||
> action.id == "org.freedesktop.login1.reboot-ignore-inhibit" ||
> action.id == "org.freedesktop.login1.reboot-multiple-sessions"
> ) {
> return polkit.Result.AUTH_SELF_KEEP;
> }
>});
More information about the Xfce
mailing list