home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume1 / 8708 / uniflex-uupc / 1 / uuclone.doc < prev    next >
Encoding:
Text File  |  1987-08-28  |  3.9 KB  |  99 lines

  1. This archive contains:
  2.  
  3. 1.    dcp*.*
  4.  
  5.     Programs which allows unattended computer communication
  6.     through modem or direct link.  The program calls uuxqt
  7.     when finished.  This program has two modes - Master and
  8.     Slave.  Master mode is used to initiate communication.
  9.     It is usually started by a cron type file.  Slave is the
  10.     mode used to answer a call.  It is usually started by a
  11.     login to the 'uucp' user account.
  12.  
  13. 2.    uuxqt.c
  14.  
  15.     A program which executes work files.  Work files have an
  16.     "X." prefix.  These work files can be sent to remote
  17.     machines by uucico for remote execution.
  18.  
  19. 3.    rmail.c
  20.  
  21.     The first of three programs to generate work files (The
  22.     other two are uucp and uux).  This program processes mail
  23.     by sending it to a local user, or creating a work file for
  24.     a remote user.
  25.  
  26. 4.    uucp.h
  27.  
  28.     The header file for the above files.  It contains machine
  29.     settup constants.
  30.  
  31.  
  32. 5.    uucp.doc
  33.  
  34.     This file contains information on the uucp G protocol.
  35.  
  36.  
  37. 6.
  38.  
  39.  
  40. Notes on implementation:
  41.  
  42. SUID         SUID
  43. owner root   owner uucp      owner uucp
  44. |            |               |
  45. mail ----> rmail ----      uuxqt
  46.                      \       ^
  47.                       \      |
  48.                        \     |
  49.                         \    |        SLAVE
  50.              MASTER      > uucico <---------- uucp login
  51.                         /    |                    |
  52.                        /   owner uucp             owner uucp
  53.            cron -------    SUID
  54.            owner root
  55.  
  56. uucico is called from two tasks - cron and login.  uucico will run in the
  57. slave mode initially, when called by login.  It will run in master mode
  58. initially, when called by cron.  uucico is owned by the uucp user so it
  59. has its SUID bit on for when cron calls it.  This will change the effective
  60. user to uucp.  uucico calls the machines you have selected in the SYSTEMS
  61. file in master mode.  It then checks for any work to do by looking for "C."
  62. prefix files.  If it finds any it performs the commands in the C. file.
  63. When it completes it switches to slave mode and the remote machine has its
  64. turn in the same way.  Also when a user logs in as uucp the password entry
  65. file directs 'uucico slave' to be executed instead of 'shell'.  The remote
  66. machine runs in master then roles switch and the host machine has a go at
  67. the remote machine.  When finished the two machines log out.  At the end
  68. uucico executes uuxqt wich then looks for "X." prefix files and performs
  69. the work specified.
  70.  
  71. When an user sends mail with a '!' in the address it re-routes the mail to
  72. rmail.  rmail then builds the C. and X. work files for the remote machine.
  73. When cron fires off uucico it finds these files and sends them to the
  74. remote machines where they are uuxqt-ed.
  75.  
  76. Basically any command can be put in a work file.  The program uux is
  77. used for this.  A special command is uucp which merely copies files
  78. from machine to machine.  The commands allowed using uux would be any
  79. command allowed by an user less than the root.
  80.  
  81. For example if you wanted to do a 'who' command on a remote machine, the
  82. uux program would make a work file, uucico would send it, and the remote
  83. machines uuxqt would execute it.  Then the results would be put in a work
  84. file, sent back through uucico and executed by the local uuxqt.  Depositing
  85. the results in the file you specify. (uux s1!who).
  86.  
  87. NOTE:
  88. This version of uucico calls all machines when executed.  It does not search
  89. for work and then call.  Also there is no mechanism to process the 'legal time'
  90. entry of the SYSTEMS file.  (FIXME).
  91.  
  92. The dcp program still has some bugs in it.  The first is a report that it
  93. doesn't work with binary files.  I haven't got to that stage yet.
  94. The second is that I'm recieving an error in transfer that garbages up
  95. the first line in the D. file.  I've been working around it because I'm
  96. more interested in support programs at this time.  Now that their where
  97. thier usable, I'm going to tackle the protocol.  The dcp modules are
  98. pretty ugly in my book.
  99.