Configure Account Lockout Policy CentOS
Configure Account Lockout Policy CentOS
every once in a while you have a special circumstance where you would need an account lockout policy (such as a secure system or ftp, that sort of thing)
let’s get started, login as root

let’s make a backup of the configuration


edit the config

add the following line to the config:

now edit file 2

add the following line:

add a user account to test with

now try with the wrong password a few times

as you can see login failures have been logged and the account is locked out
to unlock, run the following command:

from here you should be able to log back in again

that’s it!
To get a hosted Linux Server visit www.zwiegnet.com/go to get started today
Related guides: Limit Sudo to specific commands | Choosing a Smart Root Password
