1837903 Members
3343 Online
110124 Solutions
New Discussion

rcp problem

 
SOLVED
Go to solution
CLUTIER
Advisor

rcp problem

I have 2 HP9000 server.
I can't use rcp between both server but i can use rlogin. I have test with root and user login.
I have updated etc/hosts, hosts.equiv and .rhosts files.
I don't understand
12 REPLIES 12
Jean-Louis Phelix
Honored Contributor

Re: rcp problem

Hi,

The correct test should be remsh, not rlogin. What is your login shell ? Problems are documented with output from .cshrc if you use csh. What is the error message ?

Regards
It works for me (© Bill McNAMARA ...)
James R. Ferguson
Acclaimed Contributor

Re: rcp problem

Hi:

Make sure that your 'etc/inetd.conf' contains this line:

shell stream tcp nowait root /usr/lbin/remshd remshd

If not, add it and restart the 'inetd' daemon:

# /usr/sbin/inetd -c

Regards!

...JRF...
Jean-Luc Oudart
Honored Contributor

Re: rcp problem

don't forget tocheck inetd.sec too
/var/adm/inetd.sec

man inetd.sec

Jean-Luc
fiat lux
CLUTIER
Advisor

Re: rcp problem

The error message is : remsh error
The inetd.conf is good.
I have added a line in inetd.sec like
shell allow ip addres
and i no longer have an error message but it doesnt work.

Kellogg Unix Team
Trusted Contributor

Re: rcp problem

Hi,

In order to debug, follow the steps below:

from serverA, remsh to serverB as user .

On serverB, give the command "who -u"
you'll get output like -
pts/tj Nov 14 09:32 0:21 2341 serverA

Look at the last field - is it serverA, serverA.domain.com, or simply an IP address?
(this is how serverB sees connection coming from serverA)

On serverB:~/.rhosts file, add -
user1

Do the same thing for serverA if you want same functionaily other way as well. If any of the above steps fail, first try to correct that.

HTH
...Manjeet
work is fun ! (my manager is standing behind me!!)
CLUTIER
Advisor

Re: rcp problem

from server A(ciccoga), remsh to server B(ciccogd).
who -u on both server:
root pts/0 Nov 15 08:07 . 25697 cogicom16.dccm.marine.def
root pts/1 Nov 15 08:34 . 28471 ciccogad.dccm.marine.def

Bad server name.

Kellogg Unix Team
Trusted Contributor

Re: rcp problem

You got it! Give it a try by correcting the entries in hosts file.

Rgds
...Manjeet
work is fun ! (my manager is standing behind me!!)
CLUTIER
Advisor

Re: rcp problem

My hosts file is good.
I haven't got error msg but rcp don't work
Pete Randall
Outstanding Contributor
Solution

Re: rcp problem

Try setting (or creating) an /etc/nsswitch.conf file like this:

hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return] nis


and see what that gives you.

Pete

Pete
Jean-Louis Phelix
Honored Contributor

Re: rcp problem

hi,

If your /etc/hosts is correct and you still have bad hostnames using who -u, then you surely don't use it. Have a look at your /etc/nsswitch.conf file. Perhaps your DNS is not good. Try :

>nslookup
policy

Regards.
It works for me (© Bill McNAMARA ...)
Kellogg Unix Team
Trusted Contributor

Re: rcp problem

Also, if you can, comment out or move your inetd.sec file away so that you will be dealing with less variables for testing.

Rgds
...Manjeet
work is fun ! (my manager is standing behind me!!)
MANOJ SRIVASTAVA
Honored Contributor

Re: rcp problem

Hi


Does you rlogin return wiht a password propmt , or does it let you enter the system w/o asking the passwd . If it returns wiht password prompt then the rcp wont work . To ensure that the rcp work you ahve to first set the rlogin work w/o asking the passwd between the users . Set it like this

1. Server A

in $home of the user make a .rhosts file wiht the entry

server B user name < where server b is defined properly eiterh in /etc/hosts or dns > whiceever the anme is resolved or for simple test do enter

IP adressod B User Name


2. Server B

same as server A


. Now check for rlogin to take place w/o asking any passwd .


Please do get back .



Manoj Srivastava