Bug#1134098: "Enter root password for system maintenance" doesn't accept passwords longer than 127 characters
Andy Bennett
andyjpb at ashurst.eu.org
Thu Apr 16 11:14:34 BST 2026
Package: initscripts
Version: 3.14-4
When a volume mount times out during boot the console asks for the root
password:
-----
You are in emergency mode. After logging in, type "journalctl -xb" to
view
system logs, "systemctl reboot" to reboot, or "exit"
to continue bootup.
Enter root password for system maintenance
(or press Control-D to continue):
-----
If my password is longer than 127 characters then I cannot log in:
-----
(or press Control-D to continue): sulogin: input overrun at /dev/hvc0
-----
The above message appears when I key in the 128th character and then
boot tries to continue as if I'd pressed "Control-D" and then eventually
times out again.
The length limit should be the same as the length limit in the Debian
installer so that I cannot set a password that I can't use to rescue the
system.
A password longer than 127 characters works at the regular console login
prompt.
--
andyjpb at ashurst.eu.org
http://www.ashurst.eu.org/
http://www.gonumber.com/andyjpb
0x7EBA75FF
More information about the Debian-init-diversity
mailing list