Solved

Start program without login when dialing in

Posted on 1998-05-07
6
258 Views
Last Modified: 2013-12-05
We have retail store users who want to dial in and send orders to our SCO Openserver 5 computer.  They are dialing in with Xmodem protocol to send us a file, we process it and send the results back.  We can't change their software, which is not setup to respond to a login, so we need to bypass the login and have a script immediately run to accept this file whenever a call is answered. We could tie this to a particular tty port, and since this system will be used only for this function, we can disable the security altogether if we need to.  How can we disable the login for a particular port or for the whole system, but still tie that port to a profile so that a program is started after the phone call is connected?
0
Comment
Question by:ssi
6 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2006665
replace rlogind in /etc/inetd.conf to a program of your choice
0
 
LVL 3

Expert Comment

by:braveheart
ID: 2006666
I worked for a company which supplied software to do much the same thing for another well known international company in the motor service and retail business. Each retail outlet was polled in turn by the central office in each district in a number of phases, one of the phases sucked up the data while another phases downloaded new sales data or even a new monitor program for the store computers. An explicit login was never necessary.
0
 
LVL 1

Expert Comment

by:markus_baertschi
ID: 2006667
The answer is not completely trivial. When your customers
dial in the getty program taken charge. It will detect the
ring, have the modem answer it, set the tty parameters
(speed, parity, etc). Unfortunately most getty's will
themself print the login herald and ask for the login
user name.
You need a customizable getty who can just run a program
instead of asking for login info.

Markus
0
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
LVL 4

Expert Comment

by:jos010697
ID: 2006668
Markus is right; if your SCO box has a /etc/gettytab configuration file, you (most
likely) are able to skip the 'login' (or whatever) prompt and invoke something else,
instead of the default '/bin/login' program ... check your manual pages for gettytab(5)

kind regards,

Jos aka jos@and.nl
0
 
LVL 3

Expert Comment

by:dhm
ID: 2006669
If you have a modem that can be configured to use a fixed baud rate to talk to the computer, you may be able to just run the xmodem program on the port.  Xmodem's initial open of the port would block until carrier was present, which would indicate that somebody had called in.  That somebody's program would be talking to your xmodem, so they could upload files.  When they're done, they'll hang up and your xmodem program will get a SIGHUP, which should cause it to exit.  Init will then spawn another xmodem and the process starts over.

Essentially, you'd be using xmodem *instead of* getty.  You'd configure this by modifying the entries in /etc/inittab for the serial lines.
0
 
LVL 2

Accepted Solution

by:
alexbik earned 100 total points
ID: 2006670
Hi,

Is the file uploaded through Z modem? If so, you could use Mgetty to detect the beginning
of the zmodem handshake, and start rz automatically.

Alex.

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SSH commands for Nas4free 21 427
AIX  NFS  question 1 138
Sed question 2 86
SCP a file to multiple machines using a script 4 46
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

803 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