FS#19321 - [util-linux-ng|shadow] agetty -> login **problems**
Attached to Project:
Arch Linux
Opened by orbisvicis (orbisvicis) - Saturday, 01 May 2010, 23:58 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 24 September 2011, 11:34 GMT
Opened by orbisvicis (orbisvicis) - Saturday, 01 May 2010, 23:58 GMT
Last edited by Tom Gundersen (tomegun) - Saturday, 24 September 2011, 11:34 GMT
|
Details
Description:
Two problems 1] agetty (util-linux-ng) takes too much time in summoning login (shadow) . . -> text entered in agetty after submitting the username will not be forwarded to the login process (1s .. 5s .. waiting for password prompt). 2] agetty does not handle text inputted while summoning login . . -> text entered in agetty after submitting the username will be displayed directly onto the screen (oh, look at that - password is displayed in plain text) I'm hoping this can be solved by reconfiguring Arch, ie not a problem inherent to either of these packages. Additional info: * package version(s) core/shadow 4.1.4.2-2 core/util-linux-ng 2.17.2-2 Steps to reproduce: On a slower system, try inputting the login password immediately after submitting (pressing enter) the username. The password will be displayed. I sometimes need wait ten or more seconds before the password prompt appears. |
This task depends upon
Closed by Tom Gundersen (tomegun)
Saturday, 24 September 2011, 11:34 GMT
Reason for closing: No response
Saturday, 24 September 2011, 11:34 GMT
Reason for closing: No response
2] is like running "sleep 5" and entering some text while bash is waiting
1] means the new process takes too long - forever.. - to execv or fork or get created, whichever
1] Hide input (confusing)
# stty to disable echo
stty -echo
agetty -c
# login wrapper
stty echo
trap “stty -echo” 0
login
# close output fd for agetty but not children
agetty 1>&-
2] Cache and forward input to login
??
3] start login sooner/faster
Agetty wrapper with higher nice value:
highest_priority=$(( 20 - $(ulimit -H -e) ))
highest_priority=${highest_priority:-0}
renice -n "$highest_priority" -p "$$"
-or-
fix/patch agetty
FS#20508