ITEM: CG8028L

Calling dial-up users back using the ct program


Env:  Aix V3.2.5
      Model 520
      US Robotics modem

DESC:
     I want dial-up users to run the ct command and have the system
call them back.  I'm trying to do this with the ct command, but when
I run ct and exit, the process is killed.  How can I do this?

ACT:
If you are running ct and then logging out for ct to call you back,
the ct process would be killed when you exit... Unless you nohup ct.

Customer tried with nohup ct &
and gets this error:
errno: 17 link(/etc/locks//LTMP.39285, /etc/locks/LCK..tty11)
ttylock file /etc/locks/LCK..tty11                           
Lock File--process still active--not removed
cleanup(101)                                
ct: The 1 9600 dialer is busy.

The problem now is that the ct command is trying to run (dial-out)
while you are still dialed in.  You need to delay the ct command
to give you time to exit.  This should work using the ct -w option
to wait.

I tested this out and was able to get this working:

In /etc/uucp/Devices I added an ACU device:
ACU tty\# - 9600 hayes

ctscript is a ksh script as follows:

\#!/bin/ksh
if [ $\# -ne 1 ]
then
    echo "Usage: ctscript phonenumber"
    exit 1
fi
sleep 10
ct -h -x9 -s9600 $1

I then run the script as follows:

nohup ctscript &

This gives me 10 seconds to get logged out and ct does call me back.
It does call my phone number and sends a login.

The script I sent you worked as root, but not for non-root users.
Explained that you need to be in the group "uucp" to be able to open
and dial out on this tty with ct.  There are two things you can do:

1) Add users to the group uucp
or
2) chmod g+s /usr/bin/ct

You will go with option 1 for additional security on who is allowed to
dial out.

The ct program is now working as desired.


Support Line: Calling dial-up users back using the ct program ITEM: CG8028L
Dated: November 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:18
Comments or suggestions? Contact us