GDM: /sbin/nologin does not prevent user to login to a graphical session

Solution Verified - Updated -

Issue

  • A user is still able to login via GNOME Display Manager after setting login shell to /sbin/nologin.

Environment

  • Red Hat Enterprise Linux (RHEL) 8.0
  • GNOME Display Manager (gdm-3.28.3-20.el8.x86_64)

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