Friday, November 4, 2005 02:41 AM
Unless Apache uses a port above 1024, it needs
root privileges to start. It spawns non-privileged child processes to serve requests. See Starting Apache (for Apache 1.3, see this page).
Anyway, I don't think there's a method of managing user privileges in Java. I'd write a wrapper script which uses
sudo to run the actual script/executable with the desired privileges.