how to create the /etc/systemd/system/getty@tty1.service.d/override.conf- any special commands?
And what needs to be in the file? To me the manpage of agetty nor any search in the net resulted in a useful answer.
also getty@tty1.service seems not to contain a timeout setting…
[Service]
# the VT is cleared by TTYVTDisallocate
# The '-o' option value tells agetty to replace 'login' arguments with an
# option to preserve environment (-p), followed by '--' for safety, and then
# the entered username.
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear - $TERM
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
IgnoreSIGPIPE=no
SendSIGHUP=yes
that default of 60s, I have not found in the manpage… where you got your information from?
-t, --timeout timeout
Terminate if no user name could be read within timeout
seconds. Use of this option with hardwired terminal lines is
not recommended.
And what is the maximum value here? can I enter 9999999 s?
Or better: does 0 s deactivate the timeout (that is my goal!)?
Bonusquestion: the manpage states “if no user name could be read within timeout” , but the timeout is also triggered if you enter a correct username, but have a very long complicated password one needs to display it e.g. on a nonzoomable app like keypassXP on the mobile phone (just to visualize you, the password typing is slow then…) - takes much longer than 60 s. But again: the username is entered and valid…
I guess you are talking about a different timeout.
The agetty timeout sets a timeout for entering the username at the login prompt.
The login timeout handles the password prompt, authentication, and the password/login time. It’s set in /etc/login.defs.
There is no maximum value, it’s limited by the value the underlying type can store, which should be int64. But already an int32 in seconds is equivalent to over 60 years.