I want to configure securetty to limit root directly access. Now I am clear if I add:
auth required pam_securetty.so
into /etc/pam.d/system-auth, and keep only "console" in /etc/securetty, ssh login will also be prohibit. And if I add:
auth required pam_securetty.so
into /etc/pam.d/login, and keep only "console" in /etc/securetty, ssh login will not be prohibit.
Now I am not very clear about the difference between /etc/pam.d/login and /etc/pam.d/system-auth. Could anyone give me some reference or some guide? Thanks a lot!
P.S. /etc/pam.d/login vs. /etc/pam.d/system-auth also give a little about it, but I want to get more to make me more clear.