setup a line in your inittab file to run mgetty like:
modem:2345:respawn:/sbin/mgetty -s 19200 /dev/ttyS04
after you insert the line , enter "init q" to reexamine
the inittab file. man mgetty for more options
i checked, i don't have mgetty in my RedHat9 server instead mingetty & agetty only.
i can connect using winxp hyperterminal but couldn't see the login prompt. it just showed you, you are connected at the left-bottom of the hyperterminal.
i added up modem:2345:respawn:/sbin/agetty -s 115200 /dev/ttyS0 under /etc/inittab but still the same result. using linux xwin network device, i can query modem.
i even tried mingetty, but same result and it's for console only?
I am not familiar with agetty but man agetty shows an inittab entry more like:
modem:2345:respawn:/sbin/agetty -mt60 ttyS0 19200
you should try to connect at 8-1-N , also, you can do a ps command to make sure that agetty is even running (listening)
You are apparently using an external modem , correct?
The 'ps' is showing a login process active on ttyS0. Kill this process (kill -9 11920) and retry. How old is the modem? Can you talk directly to it with 'cu' and display the modem settings?
Try setting your speed to a fixed value from the pc you are dialing from, such as 19200. Are you sure the cable you are using is a modem cable? You should have cu. Type 'whereis cu'. You should be able to communicate with the device directly with command such as "cu -s 19200 -l /dev/ttyS0". Use ~. (tilde period) to end the session. What are the settings of /dev/ttyS0 -owner, group, permissions? Can you call out using the modem?
· Step 3: Now edit /etc/ppp/pap-secrets, type the information under each of the following, they are like headers, it looks like this:
# Secrets for authentication using PAP
# client server secret acceptable local IP addresses
{$client_name} * {$password} *
Definitions:
Client = the account you will be logging in with.
Server = the name of the computer that does the authentication, for us this isn’t
Important, use a * this indicates “any.”
Secret = the password for the account.
Acceptable IP = this is the IP required for connection to be made.
· Step 4: edit /etc/ppp/options:
Example:
lock
-detach
modem
crtscts
proxyarp
asyncmap 0
defaultroute /dev/ttyS”X” (specify which COM port you are using).
netmask 255.0.0.0 (use the appropriate netmask)
· Step 5: create in the /etc/ppp directory a file called options.ttyS”x”. In this, place the following information:
IpofServer:IpofClient
· NOTE: When you set up your dial up connection, in the network settings, use the IP address that was just put in as the “IpofClient.”
Client Setup:
· Step 1: Using MS Dial Up Networking, create a new connection.
· Step 2: Use appropriate phone number. Enter through remaining screens, with appropriate answers.
· Step 3: At the “connect” screen, put in the user name and password that were used in step 3 of the Server Setup.
· Step 4: Select Properties.
· Step 5: Select Networking tab.
· Step 6: Select the Internet Component (TCP/IP), and choose properties.
· Step 7: Select Obtain an IP address automatically. Press O.K. until you are back at the “connect” screen. It is now ready to dial.
hi sstilton,
i was wondering.. im doing the same thing and i cant make it work.. i just want to clarify something.. ive installed all the rpms needed.. if ill be adding in username and passwords " foo * bar * " (w/o the quotes) in pap-secrets do i still have to add those account as system users?
im getting this error..
Aug 30 18:40:07 devserver login[15993]: FAILED LOGIN 2 FROM (null) FOR egmanmi, Authentication failure
Aug 30 18:43:34 devserver mgetty[15994]: data dev=ttyS0, pid=15994, caller='none', conn='33600/ARQ/V34/LAPM/V42BIS', name='', cmd='/bin/login', user='foo'
assuming that i dont want to add foo as a system user? is pap-secrets sufficient?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.