RedHat 5.2 and settings up a BBS using mgetty

Gert Doering (gert@greenie.muc.de)
Wed, 1 Sep 1999 11:52:35 +0200


Hi,

On Tue, Aug 31, 1999 at 04:52:55PM +0100, Clive Malcolm wrote:
> I have setup mgetty. mgetty-1.1.14-5.i386.rpm
> 
> The First time I dial the modem I get something like
> 
> "???????????????????ίΑιζ?ώ"

This is pretty wird.   Looks like a basic modem communication problem, but
one would need a mgetty log to be sure.

> The Seconds Time I dial the modem I get
> 
> "Red Hat Linux release 5.2 (Apollo)
> Kernel 2.0.36 on an i586
> 
> 
> localhost.localdomain login:"

Now that's about the way it shoud look like.

> What I would like it to do is dial in first time and login as say user
> Fred and run a program.  Can anyone explain what files I would need to
> edit on RedHat 5.2 and what changes I would
> need to make

It's possible if you recompile mgetty and #define ENV_TTYPROMPT (in
policy.h).  In that case, mgetty won't prompt, but uncoditionally run 
the program that is specified by #define DEFAULT_LOGIN_PROGRAM in
policy.h - this program now has to change user ID (to "fred"), update
utmp (otherwise, "who" won't show the user name), and then run the
BBS software.  About 30 lines of C code, maybe... :-)

gert

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de