1833782 Members
2615 Online
110063 Solutions
New Discussion

uucp

 
SOLVED
Go to solution
Christa Foley
Occasional Advisor

uucp

Does any have a good step-by-step document on setting up uucp in HPUX?
3 REPLIES 3
Sachin Patel
Honored Contributor
Solution

Re: uucp

Hi Christa,
On Host1:
1
vi /etc/uucp/Systems and add following line
Host2 Any TCP - - ogin:--ogin: uhost1 ssword: gu3ssss
Do not forget u+host2's name
We are going to host2, any time, using TCP connection, as login uhost2 and with gu3ssss password.

2
vi /etc/uucp/Devices and add following line.
TCP - - Any TCP
We are using connection device as TCP, not modem or phone line.

3.
mkdir /var/spool/uucp/host2
mkdir /var/spool/uucp/host1

4
vi /etc/services and uncomment following two line
uucp-path 117/tcp # UUCP Path Service
uucp 540/tcp uucpd # uucp daemon
540 and 117 is tcp port for uucp services.

5
vi /etc/inetd.conf and uncomment following line
uucp stream tcp nowait root /usr/sbin/uucpd uucpd
Enable the uucp services.

6
run following command to reread inetd.conf
/usr/sbin/inetd -c

7 on host2
vi /etc/passwd and add line
uhost1:PASSWORD:uid:11::/var/spool/uucppublic:/usr/lbin/uucp/uucico
userid=u+host2's name, passwd is last word from host1's /etc/uucp/Systems files. Here it is "gu3ssss" .

8.
mkdir /var/spool/uucp/host2
mkdir /var/spool/uucp/host1

You are ready to do uucp from host1 to host2.

Test your uucp connection using.
/usr/lbin/uucp/uucico -r1 -s host2 -x10
this is debug level10 checking.

If you had killed your previous connection. You must remove lock file from /var/spool/uucp/lock.

if you had failed previous connection using uucico and if you want to use /usr/lbin/uucp/uucico again remove /var/spool/uucp/.Status/* file.

Where is my 10 point???

I hope this help.

Sachin.
Is photography a hobby or another way to spend $
Wodisch
Honored Contributor

Re: uucp

Hello Christa,

Sachin is missing the whole fun when not using
serial devices :-)

The config files:
/etc/uucp/Systems
-----------------
systemX Any portX 9600 city-1234 in:--in:--in: usystemX word: s3cr3t

/etc/uucp/Devices
-----------------
portX cul0p0 - Any modemX

/etc/uucp/Dialers
-----------------
modemX =W-, "" +++\r\dATZ\c OK ATDT\T CONNECT \c

/etc/uupc/Dialcodes
-------------------
city 01149=69

Then make certain your devices have proper
permissions like:

-rw-rw--- uucp uucp /dev/cul0p0
-rw-rw--- uucp uucp /dev/cua0p0
-rw-rw--- uucp uucp /dev/ttyd0p0

and add a line for the receiving modem on the
other system into its "/etc/inittab" like:

uucp:234:respawn:/usr/lbin/uucp/uugetty -t90 -r ttyd0p0 9600 vt100 #UUCP-port

and check the paragraph labeled "9600" in that
systems "/etc/gettydefs" to look like:

9600 # B9600 HUPCL ICRNL IXON IXOFF OPOST ONLCR
CS8 CREAD CRTS ISIG ICANON ECHO ECHOK
TAB3 BRKINT
# B9600 HUPCL ICRNL IXON IXOFF OPOST ONLCR
CS8 CREAD CRTS ISIG ICANON ECHO ECHOK
TAB3 BRKINT
#UUCP login: #9600

and then connect the modem, turn it on, and
use the command "cu" to test the connection:

cu -d9 systemX

and the output (-d9 is max debugging output).

The next step is to setup "Permissions" file
for the commands "uucp" and "uux", but to do
this you would be well instructed to read THE
book on uucp: "Managing UUCP and Usenet" by
Tim O'Reilly (yes, the publisher himself).

HTH,
Wodisch
Sachin Patel
Honored Contributor

Re: uucp

Hi Wodisch,
Thanks.
I copy that process for me for feature reference. You can have my 10 point.

Sachin
Is photography a hobby or another way to spend $