home *** CD-ROM | disk | FTP | other *** search
- This archive contains:
-
- 1. dcp*.*
-
- Programs which allows unattended computer communication
- through modem or direct link. The program calls uuxqt
- when finished. This program has two modes - Master and
- Slave. Master mode is used to initiate communication.
- It is usually started by a cron type file. Slave is the
- mode used to answer a call. It is usually started by a
- login to the 'uucp' user account.
-
- 2. uuxqt.c
-
- A program which executes work files. Work files have an
- "X." prefix. These work files can be sent to remote
- machines by uucico for remote execution.
-
- 3. rmail.c
-
- The first of three programs to generate work files (The
- other two are uucp and uux). This program processes mail
- by sending it to a local user, or creating a work file for
- a remote user.
-
- 4. uucp.h
-
- The header file for the above files. It contains machine
- settup constants.
-
-
- 5. uucp.doc
-
- This file contains information on the uucp G protocol.
-
-
- 6.
-
-
- Notes on implementation:
-
- SUID SUID
- owner root owner uucp owner uucp
- | | |
- mail ----> rmail ---- uuxqt
- \ ^
- \ |
- \ |
- \ | SLAVE
- MASTER > uucico <---------- uucp login
- / | |
- / owner uucp owner uucp
- cron ------- SUID
- owner root
-
- uucico is called from two tasks - cron and login. uucico will run in the
- slave mode initially, when called by login. It will run in master mode
- initially, when called by cron. uucico is owned by the uucp user so it
- has its SUID bit on for when cron calls it. This will change the effective
- user to uucp. uucico calls the machines you have selected in the SYSTEMS
- file in master mode. It then checks for any work to do by looking for "C."
- prefix files. If it finds any it performs the commands in the C. file.
- When it completes it switches to slave mode and the remote machine has its
- turn in the same way. Also when a user logs in as uucp the password entry
- file directs 'uucico slave' to be executed instead of 'shell'. The remote
- machine runs in master then roles switch and the host machine has a go at
- the remote machine. When finished the two machines log out. At the end
- uucico executes uuxqt wich then looks for "X." prefix files and performs
- the work specified.
-
- When an user sends mail with a '!' in the address it re-routes the mail to
- rmail. rmail then builds the C. and X. work files for the remote machine.
- When cron fires off uucico it finds these files and sends them to the
- remote machines where they are uuxqt-ed.
-
- Basically any command can be put in a work file. The program uux is
- used for this. A special command is uucp which merely copies files
- from machine to machine. The commands allowed using uux would be any
- command allowed by an user less than the root.
-
- For example if you wanted to do a 'who' command on a remote machine, the
- uux program would make a work file, uucico would send it, and the remote
- machines uuxqt would execute it. Then the results would be put in a work
- file, sent back through uucico and executed by the local uuxqt. Depositing
- the results in the file you specify. (uux s1!who).
-
- NOTE:
- This version of uucico calls all machines when executed. It does not search
- for work and then call. Also there is no mechanism to process the 'legal time'
- entry of the SYSTEMS file. (FIXME).
-
- The dcp program still has some bugs in it. The first is a report that it
- doesn't work with binary files. I haven't got to that stage yet.
- The second is that I'm recieving an error in transfer that garbages up
- the first line in the D. file. I've been working around it because I'm
- more interested in support programs at this time. Now that their where
- thier usable, I'm going to tackle the protocol. The dcp modules are
- pretty ugly in my book.
-