Re: Prevent normal users from power actions

2022-09-29 Thread David Wright
On Thu 29 Sep 2022 at 18:55:03 (+0200), Christoph Pleger wrote: > > I suppose it might be worth mentioning how your users reboot or > > shutdown the system, and whether this applies only when seated at > > a console or even to all users (for those of us who reboot with > > CtrlAltDel and shutdown b

Re: Prevent normal users from power actions

2022-09-29 Thread Christoph Pleger
Hello, > I suppose it might be worth mentioning how your users reboot or > shutdown the system, and whether this applies only when seated at > a console or even to all users (for those of us who reboot with > CtrlAltDel and shutdown by touching the physical power button). When a user has started

Re: Prevent normal users from power actions

2022-09-29 Thread David Wright
On Thu 29 Sep 2022 at 17:21:36 (+0200), Christoph Pleger wrote: > > > But I just realized that this does not work anymore in Debian 11. That > > is, hibernating and suspending still require the user to enter the root > > password, but rebooting and powering off work without authentication. > > Why

Re: Prevent normal users from power actions

2022-09-29 Thread Christoph Pleger
> Hallo, > But I just realized that this does not work anymore in Debian 11. That > is, hibernating and suspending still require the user to enter the root > password, but rebooting and powering off work without authentication. > Why is this the case and what do I have to do to get again what I wa

Prevent normal users from power actions

2022-09-29 Thread Christoph Pleger
Hello, I have been using this for quite a while to prevent normal users from suspending, hibernating, shutting down or rebooting the computer from their desktop session: /etc/polkit-1/localauthority/50-local.d/custom-menu [Disable suspend] Identity=unix-user:* Action=org.freedesktop.login1.sus