How do I control PAM access to 'su'?

Updated -

The following should be noted before proceeding:

  • This should only be done on a test server. Editing of PAM files can lock out the server.

  • This is not considered a secure setup this should be used for examples only.

Set up two users: testuser1 and testuser2. Set up two groups: suroot and redgroup<...>

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