Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root : ALL
- [root@lcoalhost ~]# tail -1 /etc/security/access.conf
- -:user1:ALL
- [root@localhost ~]# head -3 /etc/pam.d/sshd
- #%PAM-1.0
- auth include system-auth
- account required pam_access.so #I added this line in the file
- Jan 1 16:40:06 localhost sshd[17981]: pam_access(sshd:account): access denied for user `user1' from `10.0.1.243'
- Jan 1 16:40:06 localhost sshd[17981]: Failed password for user1 from 10.0.1.243 port 3186 ssh2
- Jan 1 11:10:06 localhost sshd[17982]: fatal: Access denied for user user1 by PAM account configuration
- Jan 1 16:53:29 localhost sshd[19144]: pam_access(sshd:account): access denied for user `root' from `10.0.1.243'
- Jan 1 16:53:29 localhost sshd[19144]: Failed password for root from 10.0.1.243 port 3356 ssh2
- Jan 1 11:23:29 localhost sshd[19145]: fatal: Access denied for user root by PAM account configuration
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement