Suppose if we create nologin file under /etc then only root can login, but if we comment on all pam_nologin.so line in every file under /etc/pam.d/ then other user also login.
That means these /etc/nologin,/etc/securetty are all controlled by pam only (I guess)
Without PAM how can I achieve the same thing?
OR
Describe the system with PAM and without PAM
I am using CentOS 6.2