in /etc/login.defs you can set the amount of times somebody can try with a wrong password ( 5 times is default) and then the user haves to wait 60sec to try login again.
Quote:
#
# Max number of login retries if password is bad
#
LOGIN_RETRIES 5
#
# Max time in seconds for login
#
LOGIN_TIMEOUT 60
|
my question is instead of waiting 60sec can you run a script if the user 5 times retries??
i want then an email send to me and then shutsdown or reboots
mayby some overkill security
wants to secure a server