In order to configure the system to deny console logins for certain users but still allow other users to
su to those users, we will be utilizing the Pluggable Authentication Modules' (PAM)
The first thing to do is to modify the
/etc/pam.d/login to look like the example below:
#%PAM-1.0 auth required ...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.