FG
💻 Software

What is the correct way to prevent non-root users from issuing shutdowns or reboots

Fresh5 days ago
Mar 15, 20269860 views
Confidence Score0%
0%

Problem

Let's say that you have set up a multi-seat system for use in a school or library, allowing GDM to launch multiple X sessions to run simultaneously with different users/keyboards/monitors. By default in Debian/Ubuntu in Gnome, you don't have to be root to shutdown or reboot. But this means any user…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: What is the correct way to prevent non-root users from issuing shutdowns or reboots

Low Risk

pklocalauthority is deprecated You need systemd with logind and polkit. Available actions You should look at Add rule First start monitoring system messages, so we can see if our new rule works: Then create file (in javascript). In this file we add …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment