[net.unix-wizards] Why won't uucp dial out?

govern@houxf.UUCP (07/07/83)

I can't get uucp to work on my 4.1BSD system.  The hardware is OK
(i.e. works on USG), and I can use cu without much trouble.
Uucp will accept calls from other systems, and will put files in
queue to be transmitted when polled.  But it won't dial out by
itself;  I get BAD LINE errors from somewhere.

Here's a transcript of what happens:

	$ echo hello | mail houxm!houxf!govern
	$ uucico -r1 -x9 -shouxm
	gdial called
	AERROR - (nr == 4) BAD LINE #exit code -1

	$ cd /usr/spool/uucp
	$ ls -lt
	-rw-rw-rw- 1 nuucp       104 Jul  6 17:59 C.houxmA1251
	-rw-rw-rw- 1 nuucp       124 Jul  6 17:59 D.houxmB1250
	-rw-rw-rw- 1 nuucp        61 Jul  6 17:59 D.hoscfX1248
	-rw-rw-rw- 1 nuucp    178309 Jul  6 17:27 LOGFILE
	-rw-rw-rw- 1 nuucp         0 Jul  6 17:26 AUDIT

	cd /dev

crw-rw-rw- 1 nuucp    25,  0 Jul  6 10:42 cua0
crw-rw-rw- 1 nuucp    25,  1 Jul  5 11:47 cua1
crw-rw-rw- 1 nuucp     1, 11 Jul  6 10:46 cul0
crw-rw-rw- 1 nuucp     1, 12 Jul  5 12:01 cul1
crw-rw-rw- 1 root      7,  0 Mar 25 11:47 dn0
crw-rw-rw- 1 root      7,  1 Mar 16 18:38 dn1


$ cd /usr/lib/uucp
$ grep houxm L.sys
houxm Any ACU 1200 HOg7782 in:--in: THELOGIN word: THEPASSWORD

$ cat L-devices
ACU cul1 cua1 1200
ACU cul0 cua0 1200

$ cat L-dialcodes
HOg 123-

Is there something I'm missing?  When I first got my BSD system ( I
borrowed a working copy rather than booting from the tape.) there
was a "/usr/lib/dnd" that turned /dev/cua0 into some sort of mpx
file from /etc/rc, but it didn't work then either.

			Help!
			Thanks;  Bill Stewart  houxf!govern
				ucbvax!ihnp4!houxf!govern
				BTL HO 4M-428 x0705

govern@houxf.UUCP (07/07/83)

My problem is now fixed, thanks to advice from Steve Bellovin and
Gary Murakami.  On my 4.1BSD system, I was getting the following
errors:
	$ uucico -r1 -x9 -shouxm
	gdial called
	AERROR - (nr == 4) BAD LINE #exit code -1

The problem was that BSD is more picky about the L-devices file
format than USG is; hence the comment and blank line in the file
wiped it out.  After fixing it, there was a TOO MANY CODES error,
which means that the L-dialcodes file had too many entries.

Fix: either change MAXCODES in /usr/src/cmd/uucp/conn.c to a larger
number (e.g. 100), or use fewer dialcodes.  The default is 30, which
is fine for most users, but too small for the BTL Network Action
distribution.

			Thanks;  Bill Stewart houxm!govern