From: Andy Ferguson (ilug at domain moil.demon.co.uk)
Date: Tue 04 May 1999 - 22:49:28 IST
On Tue, 4 May 1999, John P. Looney wrote:
> Right. I've since copped on that using mingetty is a Bad Thing. I'm using
> mgetty for managing logins on the serial port. /etc/inittab is now saying:
>
> 7:2345:respawn:/sbin/mgetty -s 19200 -r ttyS1
>
> The log for mgetty when I try and login is:
>
> 05/04 17:11:19 yS1 mgetty: experimental test release 1.1.19-Nov24
> 05/04 17:11:19 yS1 check for lockfiles
> 05/04 17:11:19 yS1 locking the line
> 05/04 17:11:19 yS1 lowering DTR to reset Modem
> 05/04 17:11:20 yS1 waiting...
> 05/04 17:11:40 yS1 WARNING: starting login while DCD is low!
> 05/04 17:11:40 ##### data dev=ttyS1, pid=28528, caller='none', conn='DIRECT', na
> me='', cmd='/bin/login', user='valen'
>
> When I try and login, all is OK, until I try to enter the password -
> nothing happens after I hit enter after the username is put in. Any ideas ?
A couple of things ...
mgetty is designed to deal with a modem on a serial port and
attempts to initialise it using AT strings defined in
/etc/mgetty/mgetty.config and friends. If there is no modem present
it will do wierd things on the serial line.
The -r switch should tell mgetty its a direct line and prevent modem
initialisation - your logfile suggests it is still trying to reset
the modem.
The login behaviour is because mgetty sends its own pseudo login
prompt so that it can determine what the inbound call wants and spawn
FIDO, FAX, PPP and other links as required. Default behaviour is to
launch the real login program passing user id, login then prompts
for the password. So it seems when mgetty should be launching the
real login program, thats whats going up in smoke
The inittab paramaters can also be defined in mgetty.config and
there should be an example at the end of the file like
# Direct VT100 line
port ttyS1
direct y
speed 19200
Perhaps there is a ttyS1 definition there that is over-riding the
command line options.
Other options for this file are detailed in the documentation with
the source and maybe in the info files. Check the info files for
your exact problem under the heading
mgetty works. /bin/login hangs
You may need to rewire your serial cable, it seems, if the problem
persists.
Andy Ferguson
~~~~~~~~~~~~~
Sysop MOIL BBS +44-1247-273357
andy at domain moil.demon.co.uk
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:10 GMT