How to make unprivileged programs listen on privileged ports

Discussion in 'all things UNIX' started by lotuseclat79, Nov 9, 2013.

Thread Status:
Not open for further replies.
  1. lotuseclat79

    lotuseclat79 Registered Member

    Joined:
    Jun 16, 2005
    Posts:
    5,097
    How to make unprivileged programs listen on privileged ports.

    Now why would anyone want to do this? As the author says:
    This article shows you how to do that!

    -- Tom
     
  2. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,698
    But you still need root or sudo for iptables :)
    Mrk
     
  3. lotuseclat79

    lotuseclat79 Registered Member

    Joined:
    Jun 16, 2005
    Posts:
    5,097
    I agree, but after you have made the permanent changes to iptables, what is the need to remain root or sudo after that?

    -- Tom
     
  4. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,698
    But if you can do it once, then you can do it any number of times for any program, and bind to any which port. It's not like it saves anything. You would have to repeat and maintain firewall rules for each program, so why not use the privileged ports in the first place, or just use unprivileged ones.

    Mrk
     
Loading...
Thread Status:
Not open for further replies.