How to disable non-root users from performing administrative tasks handled by polkit (Graphical User Interface tasks and systemctl commands)?
Issue
-
I want to disallow any users, including users in wheel group, from performing systemd administrative tasks (such as restarting services) without using sudo
-
I want to disallow any users, including users in wheel group, from performing administrative tasks using the GUI (GNOME/KDE)
Environment
- Red Hat Enterprise Linux 7 and later
- polkit
- Graphical User Interface
- systemd command requiring authentication
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.