Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 05-17-2005, 02:58 PM   #1
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
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:
login: me

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?
Old 05-19-2005, 02:14 PM   #2
LQ Newbie
Registered: Jan 2004
Location: Germany
Distribution: MyGeOs
Posts: 6

Rep: Reputation: 0
Old 05-20-2005, 03:43 PM   #3
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Original Poster
Rep: Reputation: 15
thanks I'll get right to it
Old 05-23-2005, 05:49 AM   #4
LQ Newbie
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26

Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
agetty hangs on 10.1 Barx Slackware 5 04-20-2005 08:16 PM
agetty slack66 Linux - Networking 0 01-03-2005 09:48 AM
agetty process? Smokey Slackware 2 10-31-2004 04:30 PM
disable agetty muhkuhmasta Slackware 2 07-15-2004 03:50 PM
Hacking Exposed Wireless Hacking Chapter prompt Linux - Wireless Networking 0 05-08-2004 02:44 PM

All times are GMT -5. The time now is 06:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration