home *** CD-ROM | disk | FTP | other *** search
- UUCP - Installation under Coherent
- ----------------------------------
-
- I assume you have:
-
- A PC with Coherent 3.2 and a modem connected with a
- 1:1 cable at a com-port, here com2:
-
- You want to connect your machine for email and news to the
- machine bighost whose domain-style-address is:
- bigsite.com
-
- It's a short information, if you want to know more about UUCP try
- to get the Nutshell Handbook "Managing UUCP and USENET" from
- O'Reilly and Associates ( uunet!ora!nuts )
-
- Give your site a name:
- ----------------------
-
- You should choose a name for your site, max. 7 characters. Our site
- here I will name "myhome"
-
- So edit the file /etc/uucpname to contain this line:
-
- myhome
-
- I assume "bigsite.com" will allow us to be a subdomain of it so we have
- the complete domain-style-address:
-
- myhome.bigsite.com
-
- So we need the following line in the file /etc/domain:
-
- bigsite.com
-
- (if you do not have a "domain" use the Pseudo-Domain UUCP)
-
- Now we enter /usr/lib/uucp and have to edit some more files:
-
- L-devices
- ---------
-
- This file describes the device we intend to use for UUCP. A line
- looks like:
-
- ACU com2l com2r 2400 hayes
-
- ACU = AUTO CALL UNIT = our modem
- com2l = the line we want to use for dialing out with UUCP
- com2r = the device we have to disable for login when we want to use UUCP
- 2400 = speed we intend to use for this line
- hayes = the name of the entry in /etc/modemcap that describes our
- modem.
-
- For direct connections use this line:
-
- DIR com2l com2l 9600 direct
-
- So one of this lines is all we need for now !
-
-
- L.sys
- -----
-
- The most important file ! Here we describe how to connect to another site:
-
- bighost Any ACU 2400 123456789 "" \r\d in:--in: logname word: password
-
- bighost = the name of the site we want to connect to
- Any = the time when it's allowed to call this site. Here you can
- choose days,hours, refer to your manual
- ACU = the name of the device-entry in L-devices we intend to use when
- calling bighost
- 2400 = the baud rate we want to use for this device
-
- 123456789 = the phone number, may have modem-control-codes like , W or so.
-
- The rest of the line is a script to enable automatic login.
- There are always "EXPECT" - "SEND" - pairs.
-
- EXPECT: What we expect to "see" after the connection is established
- SEND : What we will answer when we got the "expected" stuff
-
- Here the script in detail:
-
- "" = expect nothing
- \r\d = send RETURN (\r) wait 2 seconds (\d = delay)
-
- in:--in: = expect to see the rest of log(in:)
- -- = If we do not get the first login, wait, send again
- Return, wait for another log(in:)
- logname = what we will send after we got the login:-prompt.
-
- word: = We expect to get now the rest of Pass(word:)
- password = And then we will send our password
-
- This is a small script normally good enough for most applications
-
- If you use direct connection then you should use such a line:
-
- bighost Any com2l 2400 - "" \r\d in:--in: logname word: password
-
- Instead of ACU we now tell uucico about the device we use. But we still need
- the DIR - entry in L-devices.
-
- Permissions
- -----------
-
- The Permissions-file gives as individual control over the access granted
- to each system. Here a more complete example:
-
- MACHINE=bighost LOGNAME=uubighost \
- COMMANDS=rmail:rnews:uucp \
- READ=/usr/spool/uucppublic:/tmp \
- WRITE=/usr/spool/uucppublic:/tmp \
- REQUEST=yes SENDFILES=yes
-
- The Permissions-File is for both dialin and dialout
-
- MACHINE - this permissions "belong" to bighost
- LOGNAME - when bighost logs in our machine it will use the login uubighost
- COMMANDS - bighost is allowed to execute this commands on our machine
- rmail, rnews and uucp are the most common needed commands
- READ - bighost is allowed to read files in this directories
- WRITE - bighost may write files into this directories
- REQUEST - yes - bighost may request files from our machine
- no - bighost is not allowed to request file from our machine
- SENDFILES - yes - when there are jobs queued for bighost and we have
- a connection to it then transfer them
-
- There are several other fields but I don't want to write a book, I only
- want to give a "FIRST AID-Kit".
-
- If you edit this three files correctly you now have to call uucheck -v -f .
- uucheck -v -f will setup all directories, check for errors, check file
- permissions and so on.
-
- ----- comment from Udo Munk -----
- Please run uucheck -v -f twice, because the first run creates the new
- directorys with the wrong permissions. The second run will fix the
- permissions of the new directorys.
- ----- end of comment -----
-
- And now begins the "real" part: UUCP-debugging ............
-
- How uucp works (example: EMAIL)
-
- You want to write an email to friend@bigsite.com. mail notices that
- friend is not a local user. Therefore it invokes rmail. rmail "visits"
- the file /usr/lib/mail/paths to find the way to bigsite.com. Afterwards
- it invokes uux that queues a job in the UUCP-spool-directory for bigsite.com
- (/usr/spool/uucp/bighost)
- uucico will be started (automatically or manually, depends), call the other
- machine and will transfer the files in the queue to bigsite.
- At bigsite when transmissions is finished, their uucico will invoke uuxqt.
- bigsite normally receives 2 files per job. One is the command-file and one
- is the datafile belonging to this command-file.
- The command here is: rmail friend
- So uuxqt will invoke rmail friend < datafile
- rmail notices that friend is a local user and invokes: lmail friend < datafile
- (Don't assume that the commands are called exactly like that ....)
-
- uux, uuxqt and uucico automatically create log-files about their "work".
- These logfiles are useful for debugging a new uucp-session.
- You will find these logfiles in: (command_name = uux, uuxqt or uucico)
-
- /usr/spool/uucp/.Log/command_name/machine_name
-
- So if something fails try to get "why" with the help of this files.
-
- invoke uucico manually:
-
- /usr/lib/uucp/uucico -r1 -x9 -sbighost
-
- -xn = debug on with debuglevel n. 9 is a good value.
-
- uucico will write a lot of information to your screen. Normally enough
- information what works or fails. So you normally should not have problems
- to find out what's wrong.
-
- Now it's yours to get it working ;-))
-
-
- -------------------------------------------------------------------------
- Additions:
- ----------
-
- bighost wants to dial in our system:
-
- edit /etc/passwd like that:
-
- uubighost:cryptpw:10:10:uucp-login:/usr/spool/uucppublic:/usr/lib/uucp/uucico
-
- cryptpw: the crypted password for this login.
-
- When the modem has Autoanswer enabled and also the port is enabled for
- logins then bighost can login and transfer mail, news, files to our
- machine.
- Easy ;-))
-
- ----------------------------------------------------------------------------
-
- +----------------------------+--------------------+-------------------------+
- | Joachim Riedel | joachim@jr.sub.org | jr@connie.de.convex.com |
- | Geschwister-Scholl-Str. 48 +----------------------------------------------|
- | D-6050 Offenbach am Main | European Coherent Support BBS: +49 69 858711 |
- | Tel. +49 69 85 62 25 | V22bis, V32, V32bis (T3000 and USR Dual Std. |
- +---------------------------------------------------------------------------+
-
-