Operating System - HP-UX
1834796 Members
2662 Online
110070 Solutions
New Discussion

Re: Disable logins thru modem

 
Kim Kendall
Regular Advisor

Disable logins thru modem

Is there a way to disallow logins thru a tty port that has a modem attached?

We have a modem that we want to use for outgoing pages ONLY.
7 REPLIES 7
Sridhar Bhaskarla
Honored Contributor

Re: Disable logins thru modem

Hi Kim,

As long as you do not spawn any getty process for the modem, your system will not allow logins.

Do a 'ps -ef|grep getty' and see if there are any getty processes other than console. If so, then compare them against /etc/inittab and make sure the lines that correspond to your modem (like tty0p1) are taken/commented out. Refresh init by doing a 'init q'.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Kim Kendall
Regular Advisor

Re: Disable logins thru modem

the inittab has respawn...

a0:3:respawn:/usr/sbin/getty -h tty2a2 57600

We want the system to be able to dial out anytime, but just don't want it to answer incoming calls.
James R. Ferguson
Acclaimed Contributor

Re: Disable logins thru modem

Hi Kim:

I believe you want:

a0:3:off:/usr/sbin/getty -h tty2a2 57600

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Disable logins thru modem

For it to answer calls in the first place you have to configure it.

Here is how to unconfigure it:

as root

sam

SAM Peripheral Devices ->
SAM Terminals and Modems

select your modem
actions modify modem

Uncheck the box to take incoming calls.
Make sure the box for outgoing calls is still checked.

Exit sam.

I do this once every couple of years so don't bother remembering how to do it from the command line.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sridhar Bhaskarla
Honored Contributor

Re: Disable logins thru modem

Hi,

getty process is responsible for answering the incoming calls. Disabling it will not disable dial-outs.

Disable it and then try dialing out. You can always turn it back on by taking the comment off and running the 'init q' command.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Kim Kendall
Regular Advisor

Re: Disable logins thru modem

What version are you running? My version of Sam doesn't offer those options.
Darren Prior
Honored Contributor

Re: Disable logins thru modem

Hi Kim,

The replies that mention changing the respawn to off in the modem entry in inittab are accurate. You can also do this as suggested in SAM, though if you'd originally modified /etc/inittab manually it will replace your entry with SAM's default.

You can also configure the modem so that it won't answer the phone line even if a getty is present. Check your modem's handbook - MultiTech modems generally use ATS=0 to set autoanswer to off. This command can be sent by connecting to the modem using kermit or cu, and should be followed by the correct command to save the settings in the modem's memory.

regards,

Darren
Calm down. It's only ones and zeros...