LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-17-2005, 02:58 PM   #1
Yerp
Member
 
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:
[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?
 
Old 05-19-2005, 02:14 PM   #2
berell
LQ Newbie
 
Registered: Jan 2004
Location: Germany
Distribution: MyGeOs
Posts: 6

Rep: Reputation: 0
utillinux
 
Old 05-20-2005, 03:43 PM   #3
Yerp
Member
 
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
alinsoar
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.
 
  


Reply


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 02:47 PM.

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