1829328 Members
1614 Online
109989 Solutions
New Discussion

Re: RCP on RHAS 2.1

 
SOLVED
Go to solution
Tonatiuh
Super Advisor

RCP on RHAS 2.1

I issued the following command:

[root@RAC1 root]# chkconfig rcp on
error reading information on service rcp: No such file or directory

What must I do in order to activate the RCP service?
7 REPLIES 7
Vitaly Karasik_1
Honored Contributor

Re: RCP on RHAS 2.1

there is no "rcp" service, you should start "rsh" service
Paul Cross_1
Respected Contributor

Re: RCP on RHAS 2.1

rcp, rlogin, rsh, rsync, etc. all rely on the rsh service.

make sure the rsh-server and rsh rpms are installed on the respective machines.
Tonatiuh
Super Advisor

Re: RCP on RHAS 2.1

The rsh is installed:

[root@RAC1 root]# rpm -qa| grep rsh
rsh-0.17-5
rsh-server-0.17-5
Vitaly Karasik_1
Honored Contributor

Re: RCP on RHAS 2.1

as I wrote , rcp will work when rsh will work.

So you should:

1) on server box add "client_hostname" to ~user/.rhosts file
2) run "ping client_hostname" from server
3) chkconfig rsh on
chkconfig rlogin on
chkconfig iptables off
service iptables stop
4) if user is root, you should add
rsh
rlogin

to /etc/securetty
file on server machine

5) run "rsh server date" command from client in order to verify.
Tonatiuh
Super Advisor

Re: RCP on RHAS 2.1

This is my /etc/securetty file:

[root@RAC1 oracle]# cat /etc/securetty
rsh
rlogin
pts/0
pts/1
pts/2

But I still be denied to rsh with root from another server.
Vitaly Karasik_1
Honored Contributor
Solution

Re: RCP on RHAS 2.1

so add

localhost

to .rhosts file and check

rsh localhost date

on server. does it work?
Tonatiuh
Super Advisor

Re: RCP on RHAS 2.1

It is working now. THANKS!