Can't listen on ports < 1024 in linux
This is not quite a noobie question, so I would really appreciate your opinion on this topic.
Is there any way to implement something like Apache web server does:
- one process running as root, listening on port 80 (proc_root)
- other processes running as non-root (proc_user)
in that way proc_root can accept() incoming tcp/ip connections and pass some information (handle, object, anything) to proc_user, which will continue handling that connection?
The problem is that I don't want my user process to run as root, just to be able to listen on port < 1024 (in linux). Also, I'm more interested in methods of passing sockets between java processes, if that is possible at all in Java.
Is there any trick to do this in Java?
Thanks in advance.