aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: ability to bind to port < 1024 as root at startup and drop to other user later (like apache)  (Read 3969 times)

jogolo

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3

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.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795

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?
Logged

jogolo

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3

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.
Logged