hacking agetty for lfs
Okay, I find myself starting to recode much of the nicely done no longer maintained software for my lfs distro.
In the past I remember having agetty hang at load login time after logging on, and I am relatively fast on the console, so I get: [code] login: me mypasswoPassword: where mypasswo was the password I'm typing in. Now, I believe there is a way to stop sending text to the output, if I can find this linux command I can fix it so that no password is printed to the screen once user name is typed in. My problem is I am not sure which source package to look into to find agetty. I am pretty sure its one of the core packages....any help? |
utillinux
|
thanks I'll get right to it
|
there is a C++ command to stop echo... after you type your username you stop echo, and after you type a password you rechange the line caracteristics.
In fact, you ask for something stange: init calls fork, then the child calls getty, that shows the message "login:" After you type the username, getty calls something like execle ("/usr/bin/login", "login" "-p" , username, (char *) 0, envp) then login program use the argv[3] to see what the username is, etc... So I think that the solution is difficult, and not sure to exists, only if the system has a buffer to remember the string you typed to the keyboard between getty gives the control to login, and login gives the prompt for the password. Sorry if I have made grammar mistakes. |
All times are GMT -5. The time now is 06:48 AM. |