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.