Modify password prompt timeout in CentOS

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

centos login
CentOS login screen

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

LOGIN_TIMEOUT (number)
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:

LOGIN_TIMEOUT 5

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.

Resources:
login.defs man page

Leave a Reply