file transfert with rcp

kaktus2 <[email protected]> Tue, 17 Jun 2003 19:02:01 +0200
Newsgroups gmane.linux.redhat.release.seawolf
Message-ID <[email protected]>
Hello,

I need to copy a file from a server running SunOs to a 7.1 box. I can't 
copy it with scp ( coz there's no ssh/scp/sftp client/server installed 
on SunOS ) or with ftp or tftp due to internal security policy ( a bit 
nasty not to allow ftp, and using old telnet commands instead of ssh ...).
I also can't mount any network file system for doing a simple cp command 
( or eventually a NFS share from SunOs on my 7.1 box, but don't know how 
to do, and not sure if this ressource is shared).

So there's only rcp left to do it. The client and server packs are 
installed on the 7.1 box, and rshd and co is managed by xinetd, and 
started. Problem is that my 7.1 box refuses those connexions from the 
sunbox. I get these logs in my massages log when I launch the command:

root@sunbox / } rcp script kaktus@server:/home/kaktus
Permission denied.


     Jun 17 16:56:12 server pam_rhosts_auth[32546]: denied to 
root@sunbox as root: access not allowed
     Jun 17 16:56:12 server in.rshd[32546]: rsh denied to root@sunbox as 
root: Permission denied.

I get the same kind of logs when trying to connect from and/or to 
another user.
I created a /root/.rhosts file, with the IP of the sunbox inside, but 
it's not better.
Any idea of how rshd works ?

Thanks

Stéphan