This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
linux:restrict_login [2018/10/11 16:30] bmiddha removed |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Restrict Logins ====== | ||
- | <file|/etc/security/access.conf> | ||
- | +:root:ALL | ||
- | +:(wheel):ALL | ||
- | +:(AcmLanAdmins):ALL | ||
- | -:ALL:ALL | ||
- | </file> | ||
- | |||
- | <code>auth required pam_access.so</code> | ||
- | add to /etc/pam.d/login and /etc/pam.d/sshd |