How to limit user access to the Cockpit service and GUI with PAM modules

Solution Unverified - Updated -


  • How to disable Root and Service account login to Cockpit ?
  • How to deny access to cockpit GUI for certain users?
  • Login access to the Cockpit service and GUI needs to be allowed or denied for specific users
  • How to restrict login to the Cockpit for specific users or group?
  • Is it possible to restrict certain users for Cockpit GUI access?


  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Cockpit

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