How to disable non-root users from performing administrative tasks handled by polkit (Graphical User Interface tasks and systemctl commands)?

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content