This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:restrict_login [2018/10/11 14:53] bmiddha created |
— (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 |