home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / ncr / 537 < prev    next >
Encoding:
Text File  |  1992-12-14  |  9.9 KB  |  321 lines

  1. Newsgroups: comp.sys.ncr
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!sdd.hp.com!ncr-sd!ncrcae!grok39.ColumbiaSC.NCR.COM!heath
  3. From: heath@grok39.ColumbiaSC.NCR.COM (Robert.Heath)
  4. Subject: How to Set Up UUCP over WIN-TCP on Sys3k (long but informative)
  5. Message-ID: <1992Dec14.170748.795@ncrcae.ColumbiaSC.NCR.COM>
  6. Nntp-Posting-Host: grok39.columbiasc.ncr.com
  7. Organization: NCR Corp., Columbia SC
  8. Date: Mon, 14 Dec 92 22:07:47 GMT
  9. Lines: 310
  10.  
  11.  
  12.             INSTALLING UUCP ON A WIN-TCP NETWORK
  13.  
  14. Here's how to set up UUCP over WIN-TCP between two NCR System 3000's.
  15.  
  16. To install UUCP on a WIN-TCP network, you must perform these general steps:
  17.  
  18. * Configure your system's listener process to accept calls from remote systems
  19.  
  20. * Modify your system's UUCP administrative files to call remote systems
  21.  
  22. * Configure the remote system's listener process to accept calls from 
  23.   your system
  24.  
  25. * Modify the remote system's UUCP administrative files to call your system
  26.  
  27. If you require login/password security under UUCP, you must also perform 
  28. these general steps:
  29.  
  30. * Add a login name on your system into which each remote system's 
  31.   UUCP can log in.
  32.  
  33. * Add a login name on each remote system into which your system's  UUCP
  34.   can log in.
  35.  
  36. For best performance, you must set up both your system and each remote system
  37. in complementary fashion.  Configure your system configured to call each remote
  38. system; set up each remote system to call your system.
  39.  
  40.  
  41. Before setting up UUCP, you must:
  42.  
  43. * Know your system's node name.  (Hint: type "uname -n".)
  44.  
  45. * Know the node name of each remote system you wish to contact.
  46.   (Type "uname -n" on each remote system.)
  47.  
  48. * Be sure that WIN-TCP communication with the remote system exists,
  49.   for example,  rlogin or telnet connects to the remote system.
  50.  
  51. * Decide if you want UUCP to use login/password protection.
  52.   Before creating a UUCP network with login/password protection, 
  53.   decide which login and password you will assign to each remote system's
  54.   UUCP.   Likewise, ask the administrator of each 
  55.   remote system to assign your system's UUCP a login and password.
  56.  
  57. * Login to your system with super-user privileges
  58.  
  59. You are then ready to start setting up UUCP over WIN-TCP.
  60.  
  61. SET UP YOUR SYSTEM'S LISTENER PROCESS
  62. Set up  your local listener process using steps 1 through 8.
  63. The procedure takes into account the possibility that your listener has
  64. already been configured.
  65.  
  66. 1) Create and initialize the files needed by the network listener by typing:
  67.  
  68.     nlsadmin -i tcp
  69.  
  70. If your listener has not already been initialized, the command displays 
  71. no message.  Otherwise, the command displays the message:
  72.  
  73.     nlsadmin: error: Listener already initialized
  74.  
  75. Disregard the message if it appears.
  76.  
  77. 2) Determine your system's Internet Protocol address and port number 
  78. by typing:
  79.  
  80.     IPADDRESS=`/usr/etc/rfsaddr -h\`uname -n\``
  81.  
  82. If an error message appears, it implies a problem in the WIN-TCP 
  83. configuration itself.
  84. You won't be able to continue setting up UUCP until WIN-TCP is corrected.
  85.  
  86. Display your system's Internet and port address by typing:
  87.  
  88.     echo $IPADDRESS
  89.  
  90. The result will be a hexadecimal string similar to:
  91.  
  92.     \x00020ace874f6ca6
  93.  
  94. Save this string since you will need it when setting up  remote systems 
  95. to call your system.
  96.  
  97. 3)  Assign the address and port to your listener by typing:
  98.  
  99.     nlsadmin -l $IPADDRESS tcp
  100.  
  101. The command displays no message on successful completion.
  102.  
  103.  
  104. If you want to install your UUCP listener with login/password protection, 
  105. go to step 5, otherwise continue with step 4.
  106.  
  107. 4) Add an unsecure listener service by typing:
  108.  
  109.     nlsadmin -a 101 -c "/usr/lib/uucp/uucico -r0 -iTLI -unuucp" \
  110.         -y "uucp listener" tcp 
  111.  
  112.  
  113. If the service already exists, you will see the message:
  114.  
  115.     nlsadmin: error: Service code already exists
  116.  
  117. If the message appears, ignore it.
  118.  
  119. Skip to step 9.
  120.  
  121. 5) Add a secure listener service by typing 
  122.  
  123.     pmadm -a -fu -ptcp -s101 -iroot -v`nlsadmin -V` \
  124.         -m`nlsadmin -c/bin/login -ptirdwr` -y "uucp network login"
  125.  
  126. If you have already set up the service, you may see the message:
  127.  
  128.     Invalid request, 101 already exists under tcp
  129.  
  130. 6) Add a network login for each remote system that will call into your 
  131. system, by typing:
  132.  
  133.     passmgmt -a -h /var/spool/uucppublic -s /usr/lib/uucp/uucico \
  134.             -c "UUCP network login" <UUCP login>
  135.  
  136. where <UUCP login> is the login name you chose for the remote system.
  137. Some administrators assign names like "xuucp" where `x' is the first
  138. letter of the remote system name.
  139.  
  140. Note: The standard UUCP network login "nuucp" comes installed on your system.
  141. Although you may let more than one system use the same UUCP network login
  142. (e.g. nuucp), you may prefer to give each remote system its own login 
  143. for greater security.
  144.  
  145. 7) Add a password for each network login by typing:
  146.  
  147.     passwd <UUCP login>
  148.  
  149. The passwd command will prompt you to type and re-type the password which 
  150. you wish to assign to <UUCP login>.
  151.  
  152. 8) Using your favorite editor, at the top of your system's 
  153. /etc/uucp/Permissions file, add a line similar to:
  154.  
  155.     LOGNAME=<UUCP login> MACHINE=<sysname> VALIDATE=<sysname>
  156.  
  157. where,
  158.     <UUCP login> is the login name you chose for the remote system, and
  159.     <sysname> is the name of the remote system
  160.  
  161. For each remote system which must login to your system, 
  162. repeat steps 6 through 8.
  163.  
  164.  
  165. 9 ) Make sure your system's listener process has started by typing:
  166.  
  167.     nlsadmin -s tcp
  168.  
  169. You may see the message:
  170.  
  171.     nlsadmin: error: Listener already running
  172.  
  173.  
  174. MODIFY YOUR SYSTEM'S UUCP ADMINISTRATIVE FILES FOR CALLS OVER WIN-TCP
  175.  
  176. 10) Using your favorite editor, verify that the file /etc/uucp/Dialers contains
  177. the line:
  178.  
  179.     tcp "" "" NLPS:000:001:101\N\c
  180.  
  181. anywhere in the file. If the line does not exist, or has been commented out by 
  182. a `#' character,  add the line exactly as shown.
  183.  
  184. 11) Using your favorite editor, verify that the file /etc/uucp/Devices contains
  185. the lines:
  186.  
  187.     TCP,eg tcp - - TLI \D tcp
  188.     TCPS,eg tcp - Any TLIS \D tcp
  189.  
  190. anywhere in the file.  If the lines do not exist, or have been commented out by
  191. a `#' character, add the lines exactly as shown.  
  192.  
  193. 12) Using your favorite editor, verify that the file /etc/uucp/Devconfig 
  194. contains a line 
  195.  
  196.     service=uucico device=TCPS push=tirdwr
  197.  
  198. anywhere in the file.  If the line does not exist, or has been 
  199. commented out by a `#' character, add the line exactly as shown.  
  200.  
  201.  
  202. MODIFY YOUR UUCP SYSTEMS FILE FOR EACH SYSTEM YOU WISH TO CALL
  203.  
  204. 13) Determine the remote system's listener's Internet address and port string.
  205.  
  206. If the remote system's listener has not been set up, set it up now by 
  207. performing steps 1 through 9 on the remote machine as appropriate.
  208. The goal is to configure the remote system's listener's address from step 2,
  209. when performed on the remote system, into your system.
  210.  
  211. If the remote system's listener has been set up, determine its
  212. Internet address by typing the following command ON THE REMOTE SYSTEM:
  213.  
  214.     nlsadmin -l - tcp
  215.  
  216. This value you obtain is called <IP address> in the following step.
  217.  
  218. 14) Add an entry for the remote system into your system's /etc/uucp/Systems 
  219. file using your favorite editor.  
  220.  
  221. If the remote system has login/password security, add a line like
  222.  
  223. <sysname> Any TCPS - <IP address> ogin: <UUCP login>\n\c ssword: <password>\n\c
  224.  
  225. Note the \n\c sequence following the <UUCP login> and <password>.
  226.  
  227. where,
  228.     <sysname> is the remote system's name
  229.     <IP address> is the Internet address and default port string 
  230.     <UUCP login> is the name under which your system's UUCP logs 
  231.                      into the remote system
  232.     <password> is your system's UUCP login password on the remote
  233.  
  234. If the remote system does not nave login/password security, add a line like
  235.  
  236.     <sysname> Any TCP - <IP address> 
  237.  
  238. where,
  239.     <sysname> is the remote system's name
  240.     <IP address> is the Internet address and port
  241.  
  242.  
  243. Repeat steps 13 and 14 for each remote system which your system calls.
  244.  
  245.  
  246. SET UP EACH REMOTE SYSTEM TO RECOGNIZE YOUR SYSTEM
  247. Setting up  systems for UUCP is complementary. 
  248. You must set up each remote system to which your 
  249. system connects to recognize your system.  Do this by  repeating 
  250. the steps 1 through 14, as appropriate, on each remote system.
  251.  
  252. TESTING THE UUCP CONNECTION OVER WIN-TCP
  253. After setting up the machines in your network, test out 
  254. your UUCP connection to another system with a debugging trace.  
  255. Type in:
  256.  
  257.     /usr/lib/uucp/Uutry -r <sysname>
  258.  
  259. where <sysname> is the name of a remote system.
  260.  
  261. A successful trace using login/password protection looks  like this:
  262.  
  263.   /usr/lib/uucp/uucico -r1 -s<sysname>  -f -x5 >/tmp/<sysname> 2>&1&
  264.   tmp=/tmp/<sysname>
  265.   force flag set (ignoring uucico limit)
  266.   mchFind called (<sysname>)
  267.   attempting to open /var/uucp/.Admin/account
  268.   mkdir - /var/spool/uucp/<sysname>
  269.   Job grade to process - 
  270.   conn(<sysname>)
  271.   Trying entry from '/etc/uucp/Systems' - device type TCPS.
  272.   Device Type TCPS wanted
  273.   Trying device entry 'tcp' from '/etc/uucp/Devices'.
  274.   processdev: calling setdevcfg(uucico, TCPS)
  275.   Internal caller type TLIS
  276.   tlicall: bound to 
  277.   t_connect to addr "\x00020ace884e7d8c"
  278.   set interface TLIS
  279.   tssetup: MASTER mode: leaving ok
  280.   pop_push: PUSHing tirdwr
  281.   gdial(tcp) called
  282.   Trying caller script 'tcp' from '/etc/uucp/Dialers'.
  283.   expect: ("")
  284.   got it
  285.   sendthem (NLPS:000:001:101^@<NO CR>)
  286.   getto ret 8
  287.   expect: (ogin:)
  288.   login:got it
  289.   sendthem (nuucp^J<NO CR>)
  290.   expect: (word:)
  291.    Password:got it
  292.   sendthem (hot*dog^J<NO CR>)
  293.   Login Successful: System=<sysname>
  294.   msg-ROK -R -U0x3fffff -x5
  295.    Rmtname <sysname>,  Restart YES, Role MASTER,  Ifn - 8, Loginuser - root
  296.   rmesg - 'P' got PgGedxf
  297.   wmesg 'U'e
  298.   Proto started e
  299.   *** TOP ***  -  Role=1, setline - X
  300.   wmesg 'H'
  301.   rmesg - 'H' got HY
  302.    PROCESS: msg - HY
  303.   HUP:
  304.   wmesg 'H'Y
  305.   cntrl - 0
  306.   send OO 0,exit code 0
  307.   Conversation Complete: Status SUCCEEDED
  308.   
  309.  
  310. Be sure to initiate the connection between other machines and your own system.
  311. Key in the same command on a remote system specifying your system's name
  312. as <sysname>.
  313.  
  314. If both traces succeed, you have basic assurance that you will be
  315. able to transfer files and even e-mail.
  316.  
  317.  
  318. FOR FURTHER INFORMATION ON UUCP
  319. See the section "Basic Networking Utilities" in the
  320. NCR UNIX SVR4 Administrator Guide: Advanced Tasks.
  321.