SUMMARY: Running 'rcp'

From: Renato Huliganga (
Date: Thu Dec 04 1997 - 17:40:57 CST

It is great - the solution has been found.
Thanks to all of you.
Mr. Lucio Chiappetti ( deserves a special mention though - he hit the nail right on the head.

The others who helped:

David Stern []
Pitcher, Glenn []
valeix Arnaud []
Claude Charest [charest@chou.CANR.Hydro.Qc.Ca]
Tim Hespe []
Dr. Tom Blinn, 603-884-0646 []
Peter Stern []
Arora, Samir []
Kevin Sheehan {Consulting Poster Child} []
Pam Woods, Systems Manager [axsymgr@UAA.ALASKA.EDU]
Martin Mokrejs []
Glenn Newbery []

The original (amended) posting:

I have been trying to copy files (using rcp) between an ALPHA and a SUNSPARC - I'm not having any success at all, although I have followed what is suggested in the 'man pages' of both machines.

The machines and O/S's are:
ALPHA - Digital Unix V4.0B (rev 564)
SUNSPARC - Solaris 2.4 (SUNOS 5.4)

I think I have made all the required configuration changes on both machines. (eg. /etc/hosts.equiv, $home/.rhosts) as suggested by the 'man pages' of both machines.

The error message's are:

'Permission denied'. (run 'rcp' at the SUNSPARC, source machine ALPHA, destination machine SUNSPARC)

'stty: : Invalid argument' (run 'rcp' at the ALPHA, source machine SUNSPARC, destination machine ALPHA)

The solution:
 - As documented in the 'man pages' the machines (and users on machines) must know each other via the '/etc/hosts.equiv' and '$home/.rhosts' files.

- The 'rcp' command (or similar commands like 'rsh') also runs '$home/.cshrc', and, 'rcp' fails if there interactive commands (like 'stty') in this file - such commands should be removed before running 'rcp'. Or use conditionals such as: ' if ($USER == 0 || $?prompt == 0) exit '. There is actually a '.cshrc' RESTRICTION in the 'man pages' for 'rcp', ie.:

    The rcp command is confused by output generated by commands in a .cshrc
    file on the remote host. In particular, the messages, where are you? and
    stty: Can't assign requested address can result if output is generated by
    the startup file.

- The error messages: the message from the ALPHA should have given me the clue, the message from the SUNSPARC is a misleading one.


This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:11 CDT