Is it possible to have an 'su only' user account ?

Solution Verified - Updated -

Issue

  • Is there a way to have su (switch user) as the only means of becoming a user? 
  • Trying to prevent a generic account from logging in at both the GUI (KDE, GNOME, etc) and at the console (such as at runlevel 3). 
  • Once a regular user logs in they could su to the 'su only' user.

Environment

  • Red Hat Enterprise Linux 4 or 5
  • pam

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