Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. root : ALL
  2.  
  3. [root@lcoalhost ~]# tail -1 /etc/security/access.conf
  4. -:user1:ALL
  5.  
  6. [root@localhost ~]# head -3 /etc/pam.d/sshd
  7. #%PAM-1.0
  8. auth include system-auth
  9. account required pam_access.so #I added this line in the file
  10.  
  11. Jan 1 16:40:06 localhost sshd[17981]: pam_access(sshd:account): access denied for user `user1' from `10.0.1.243'
  12. Jan 1 16:40:06 localhost sshd[17981]: Failed password for user1 from 10.0.1.243 port 3186 ssh2
  13. Jan 1 11:10:06 localhost sshd[17982]: fatal: Access denied for user user1 by PAM account configuration
  14.  
  15. Jan 1 16:53:29 localhost sshd[19144]: pam_access(sshd:account): access denied for user `root' from `10.0.1.243'
  16. Jan 1 16:53:29 localhost sshd[19144]: Failed password for root from 10.0.1.243 port 3356 ssh2
  17. 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