1831356 Members
2882 Online
110024 Solutions
New Discussion

Re: rcp command failed

 
CSP_ALGERIA
Frequent Advisor

rcp command failed

hello
I have a problem with a rcp command on a server HP9000 R380 HPUX 11.0 for other user than root the error is :
error:rresvport:bind:Permission denied
thanks.
Nothing in the world can take the place of persistence.
5 REPLIES 5
Ermin Borovac
Honored Contributor

Re: rcp command failed

Do you have setuid bit set on /usr/bin/rcp? If not, put it back on with

# chmod 4555 /usr/bin/rcp

I would also run swverify to check for any other potential problems.

# swverify -v \*
sysadm_1
Valued Contributor

Re: rcp command failed

check permissions.
does the user have read permission for source files and write permission for target files.
Bharat Katkar
Honored Contributor

Re: rcp command failed

Hi,
R u using .rhosts or hosts.equiv?
I guess you are using .rhosts which is set only for root.
See man of .rhosts and hosts.equiv to know more about them.
Now suppose your user is "algeria" then similar user must exists on the other system from where you are copying file. Then you need to create .rhosts file in the home directory of algeria on th remote system and modify it to give required permissions. Check by adding "+ +" in that file. It shoudl work.

Regards,
You need to know a lot to actually know how little you know
Sunil Sharma_1
Honored Contributor

Re: rcp command failed

Please check rsh or rlogin is working for that user.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Pedro Cosmen
Valued Contributor

Re: rcp command failed

And always remember that the rigths are granted in the .rhosts or hosts.equiv of the "client" system, not in the one that is trying to connect.

Regards.