Need non-privileged user to be able to bind port 80 . . .

Discussion in 'General Linux' started by Pikachu2000, Jan 2, 2013.

  1. Pikachu2000

    Pikachu2000 New Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    For the web access portion of an IRC server, the packages are owned and started by a non-priveleged user. I need it to be able to bind port 80 to listen for incoming connections. Can this be done somehow, either by starting the process as a privileged user then maybe disowning it, or can it possibly be done by port redirection from port 80 to a registered port?


    Or is there something else I'm overlooking?
  2. adam525

    adam525 New Member

    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Only root can bind to ports lower than 1024. Depending on what you are doing, maybe start the web server on 8080 and if you are behind a firewall, do port translation from 8080 to 80 on your web server. If you aren't in a position to do PAT, just link to your web page(s) with 8080 in the link.

    I'm not sure what your ultimate goal is here, but with the info I have to work with from your post, that would be my first idea...

Share This Page