Modify password prompt timeout in CentOS

The default login password prompt interval is 60 seconds in CentOS.

CentOS login screen

You can adjust this value by modifying the LOGIN_TIMEOUT value in the file /etc/login.defs.

Max time in seconds for login.

login.defs man page

Just edit the file /etc/login.defs with your preferred text editor and add/adjust the value:


In this case, we’ve set the max login tine to 5 seconds. Use the value that suits your needs. Save the file and reboot the server. The new value is used.

login.defs man page

Share this post: