Solved

inittab setup for mgetty . . .

Posted on 1998-08-12
1
394 Views
Last Modified: 2013-12-15
We currently have a modem setup on our system so that we can make a ppp
connection to other systems.  This setup is sometimes unreliable and we suspect
that it is because that connection is being serviced by getty, instead of mgetty.  In
setting up for mgetty I think I've made the appropriate entries in gettydefs.  Now I'm
not sure how to make the appropriate entries in /etc/inittab, so that mgetty knows
to look in gettydefs.  Some of the principle issues I'm concerned with are:

a.)  Making sure that the port can continue to be used the way that it has been, both
for ppp and direct login.

b.)  Solving our problems with not being able to use the port again, when the line drops
improperly.

Question:  What is the appropriate string for setting up inittab, for mgetty, so that it can
do auto-baud rate detection?
0
Comment
Question by:otser
1 Comment
 
LVL 2

Accepted Solution

by:
alexbik earned 200 total points
ID: 1629577
Hi,

If you use mgetty with 'default' settings you'll be fine.
You may want to compile in Auto_PPP support, so your users can login
from W95 /NT machines without a loginscript. But that's a bit beside the point here.
Take a look at mgetty.conf, configure the default settings for your modems
(speed, initstring and stuff), and take a look et login.conf.

From inittab, you can start mgetty with mgetty /dev/ttyXXX -D
The -D disables 'adaptive answer mode'. If you don't and you are using fax modems
(you probably are), mgetty tells your modems to try to find out weahter there's a fax
or a modem at the other end of the line. This sometimes results in failed V34 handshakes.

The only thing you may want to change is the login prompt (-p), so you can keep using
your old loginscripts. Just put -p <login prompt> at the command line. If you don't
the default login prompt looks like

<machine_name>!login:

So if your machine is called cs-01 it will be:

cs-01!login:

Your old getty probably uses a space instead of a bang.

Alex.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now