aMule Forum

English => Feature requests => Topic started by: jogolo on May 12, 2006, 10:53:40 AM

Title: ability to bind to port < 1024 as root at startup and drop to other user later (like apache)
Post by: jogolo on May 12, 2006, 10:53:40 AM
Very often ISPs, employers or at university campuses ports < 1024 are blocked. At the moment, there is no other way than running amule as root to be able to use a port < 1024, which for security reasons not an option.

A feature would be nice to start amule as root to bind to port < 1024 and then to switch to another user (as apache does it with user nobody and group nogroup).

Otherwise I do not see a reasonable (ie secure) way to use amule with a port below 1024.
Title: Re: ability to bind to port < 1024 as root at startup and drop to other user later (like apache)
Post by: Kry on May 12, 2006, 11:39:32 AM
You can do that as root, changing the uid a process is running with. However, I doubt your university lets you use the root account?
Title: Re: ability to bind to port < 1024 as root at startup and drop to other user later (like apache)
Post by: jogolo on May 12, 2006, 08:15:00 PM
Quote
Originally posted by Kry
You can do that as root, changing the uid a process is running with.

How can I do this on a linux system? (which command, I can then read the man page ;-) )

Quote
Originally posted by Kry
However, I doubt your university lets you use the root account?

Every user can get into the fast campus network with her / his laptop, but at our network only port 22 (ssh) is open.