From: harakka_j@kulminator.salcom.fi Subject: Re: 0.99pl6 and serial login doesn't work for me Date: 11 Mar 1993 23:51:24 +0200
In article <da188.731792922@Euston>, da188@city.ac.uk (The Eno) writes:
> harakka_j@kulminator.salcom.fi writes:
>
>>I first installed the SLS with pl4 kernel and it worked. Then I updated
>>the kernel to pl6 and serial logins stopped to work, console and telnet
>>still work. As said above, neither poeigl-1.11a nor shadow versions of
>>login work (I even checked the shadow versions from the news SLS, that
>>has pl6 kernel).
>
>>So, if nobody else has this problem, it's time to do some Troubleshooting...
>>Anyway, I'll appreciate all hints regarding this one!
>
>> - juha -
>
>
> ME TOO! Has ANYBODY got logins to work over a serial line with this kernel?
OK, I have done some debugging on this tonight. What I did was that I told
getty to use gdb as login-program (instead of login). Then I answered to the
login: promt with the name of my real login-program so that gdb got it as
first argument. That way I was able to run login with gdb (Thanks for the
hint Joachim <sprave@gonzo.informatik.uni-dortmund.de>!). Before that I
off course compiled the login program (shadow version) with debug information.
That way I was able to trace the problem down to the point where getpass()
function tried to do fopen on /dev/tty, which seem to cause the hang. My
question is: Am I mocking things up by running the gdb, or could the fopen
on /dev/tty be the real reason of the problem? Any comments anybody?
- juha -
----Juha Harakka, SALCOM Finland OY, Box 37, SF-40321 Jyvaskyla -
---Tel: +358-41-685 333 & +358-49-643 319, Fax: +358-41-677 944 --
--X.400:c=fi;admd=fumail;o=salcom;s=Juha.Harakka,BIX: jharakka ---
-Internet: Juha.Harakka@salcom.fi PSImail: 244324100014::Harakka_J----