[OT] Re: Why I can't bind the 1023 port?
From: Bastien Nocera <hadess@hadess.net>
Date: 2002-06-11 02:38:19
On Tue, 2002-06-11 at 03:18, Daniel Lao wrote:
I recently met some trouble with the "rcp" command. My "rcp" could not work even if I have correctly configure the remote host. When I run rcp in my local host, it print "Permission deny" to the terminal. So I re-compiled rcp and debugged it by GDB. I found that it fail while tried to bind the 1023 port for connecting with the remote rshd. I though the 1023 port might be protected, and I wrote a program as below:
<snip>
The running result was that I could not bind these ports: 1023, 1022, ... but it was success in bind 1024 port. And while I su to as the super-user, I could bind all these ports! I am wondering if the ports were really protected, and how can I use the ports? Should anyone be kind to give me some advise? :)
ports < 1024 are reserved to the super-user. This is clearly very much off topic btw. Cheers -- /Bastien Nocera http://hadess.net ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/