Operating System - HP-UX
1819734 Members
3033 Online
109606 Solutions
New Discussion юеВ

RCP problem (remote copy)

 
Srichandan T.
Occasional Advisor

RCP problem (remote copy)

I am unable to use "rcp" command to copy files from another machine. I have given entries in .rhosts file also I get this error message "rresvcport bind : permission denied".

Please sugesst me how this problem can be resolved.
8 REPLIES 8
Alexander M. Ermes
Honored Contributor

Re: RCP problem (remote copy)

Hi there.
Check the system access options with SAM.
Hidden in Network & Communications / sytem access .
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Srichandan T.
Occasional Advisor

Re: RCP problem (remote copy)

Hi Alex,
I have verified in SAM. Inside system access, i have checked Internet Services & remote logins. And in internet services rloing is allowed.

Please sugesst me.

Regards,
Srichandan
V. Nyga
Honored Contributor

Re: RCP problem (remote copy)

Hi,

is exec also allowed for remote access?

And how do you have given entries in .rhosts?

Or check this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=732231

Volkmar
*** Say 'Thanks' with Kudos ***
V. Nyga
Honored Contributor

Re: RCP problem (remote copy)

Hi again,

seems to be permissions of
/usr/bin/rcp

Sanjay tells how to fix it.

V.
*** Say 'Thanks' with Kudos ***
Srichandan T.
Occasional Advisor

Re: RCP problem (remote copy)

I have verified the permissions and they are fine.

Please sugesst me how to get rid of this problem.
Bill Hassell
Honored Contributor

Re: RCP problem (remote copy)

Make sure /usr/bin/rcp has the 'sticky' bit set. Permissions should be: -r-sr-xr-x (notice the 's'). You can set this with chmod 4555 /usr/bin/rcp.

Also make sure you have both a simple hostname *and* a fully-qualified domain name in .rhosts or /etc/hosts.equiv (FQDN might be mycpu.mycompany.com taken from your /etc/resolv.conf file)


Bill Hassell, sysadmin
V. Nyga
Honored Contributor

Re: RCP problem (remote copy)

Hi again,

what's about my 2 questions?

One more suggestion would be to do search in ITRC:
http://www4.itrc.hp.com/service/james/search.do?searchtext=bind+rcp&searchcriteria=allwords&searchtype=SEARCH_TECH_DOCS&searchtype=SEARCH_FORUMS&rn=25&presort=rank&x=30&y=10

There are quite much threads about this.

HTH
Volkmar

P.S.
http://forums1.itrc.hp.com/service/forums/helptips.do?#28

You have assigned points to 1 of 22 answers
*** Say 'Thanks' with Kudos ***
vinod_25
Valued Contributor

Re: RCP problem (remote copy)

hi Sri

This problem was resolved by setting the uid bit as follows:

# chmod u=rxs /usr/bin/rcp

Note: The "execute" privilege must be applied in order for
the proper "sticky bit" to be set.

or

# chmod 4555 /usr/bin/rcp

Permissions, owner and group for /usr/bin/rcp are as follows:

-r-sr-xr-x 1 root bin 32768 Jul 22 1998 /usr/bin/rcp
regards

Vinod K