By default when I login to my Arch linux box in a tty, there is a timeout after I type my username but before I type my password.
So it goes like this
Login: mylogin <enter>
Password:
(+ 60 seconds)
Login:
As you can see, if I don't type the password it recycles the prompt — I want it to wait indefinitely for my password instead of recycling the login prompt.
Is this possible?
It seems like the --timeout
option to agetty
would be what I want. However, I tried adding this flag in the getty files in /usr/lib/systemd/system/
(the option is not used by default), and rebooting — it seemed to have no effect.
Best Answer
agetty
callslogin
after reading in the user name, so any timeout when reading the password is done bylogin
.To change this, edit
/etc/login.defs
and change the LOGIN_TIMEOUT value.