Yes , scp is more secure .
But talking about rcp , I think /etc/hosts.equiv of the TARGET machine have to contain "+ username" antd .rhosts of the SOURCE machine have to contain "source_machine username" .
BR
Brabard
Main Topics
Browse All TopicsHello Everybody I am trying to do rcp from one linux machine to another both running RHEL 4.0, but everytime message is coming permission denied, either ways. Enabled rsh package kept in /etc/xinetd.d directory on both the servers, added entries in the .rhosts and /etc/hosts.equiv file also but still getting the same error message.
#vi /etc/xinetd.d/rsh
disable = no
#service xinetd restart
#pwd
/root
#vi .rhosts
+
#vi /etc/hosts.equiv
+
Then from other machine
#rcp kal 10.102.103.2:/root
Permission Denied
These are the steps what i performed, Please help me out..
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Ops sorry , when I read down my message again I fixed some missgiven .
My thought was that simular to scp , the remote machine have to know who is initiating connection .
As I don't use "r" family command , I have looked for man pages in Internet .
Now I think the part for /etc/hosts.equiv is right , but may be in .rhosts for the user in TARGET machine have to be putted "source_machine username" . Smth like this :
Case
192.168.0.1:~#pcs FILE user@192.168.0.2:/home/use
on 192.168.0.2 in .rhosts we need
192.168.0.1 user
BR
Brabard
#rcp -p /root/ank root@gtlhr:/data/ank
permission denied
#chkconfig --list
xinetd based services:
ktalk: off
echo: off
time: off
rexec: on
time-udp: off
rsync: on
tftp: off
rsh: on
chargen: off
telnet: on
chargen-udp: off
echo-udp: off
rlogin: on
daytime: off
cups-lpd: off
daytime-udp: off
on both the servers output of above command is same....
Yes tried with the new user on both the machine but again getting the same error "Permission Denied".
Entries in the .rhosts file of root as well as newuser
+
10.102.10.102<tab>root
10.102.10.102<tab>newuser
similarly on other machine
+
10.102.10.103<tab>root
10.102.10.103<tab>newuser
similar entries in hosts.equiv file also....and also tried with the space bar also as a field delimiter instead of tab but of no use.........
Business Accounts
Answer for Membership
by: harbor235Posted on 2005-08-11 at 05:40:46ID: 14650832
What is the error message? Why not use secure copy instead? (scp is part of ssh)
harbor235 ;}