Operating System - HP-UX
1833780 Members
2365 Online
110063 Solutions
New Discussion

rresvport: bind: permission deneid

 
SOLVED
Go to solution

rresvport: bind: permission deneid

I need to rcp -r -p hostname:/path/* /path
Not as root bud as a user.
When i do this i get the message:

rresvport: bind: permission denied

This seems to be something else then the "normal" permission denied because i can't seem to solve this by adjusting the .rhost .host.equiv etc.

Can anyone help me with this?
You never walk alone
2 REPLIES 2
Steven Sim Kok Leong
Honored Contributor
Solution

Re: rresvport: bind: permission deneid

Hi,

Your problem will occur for normal users and not for root. This is because root privileges are needed.

According to a man page on rresvport, the rresvport() function is used to obtain a socket with a privileged ad-dress bound to it. This socket is suitable for use by rcmd() and several other functions. Privileged Internet ports are those in the range 0 to 1023. Only the super-user is allowed to bind an address of this sort to a socket.

Thus, you have to check the permissions of your rsh i.e.

# ll `which rsh`

Make sure that the setuid bit is set. If it isn't, set it.

# chmod 4755 `which rsh`

Hope this helps. Regards.

Steven Sim Kok Leong

Re: rresvport: bind: permission deneid

Hello Steven

Thank you very much for resolving this!

Guess wat happened.
According to your answer i checked the /usr/bin directory. Everything is 777 there! AAAAAAAAAAAAAAARG! How did this happen!!
I wil have a word with my colleges who know the root account of this machine. Someone has to have made a mistake with the chmod -R command the wrong path.
I wil quikly compare this with other machines and put the permissions and s bits right again.

Raymond
You never walk alone