Find the answer to your Linux question:
Results 1 to 7 of 7
Hi, I want to run my application on 443 port. sunraise76 is the user id in the system. Is it possible to run the application without adding this user in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4

    Running application on 443 port ( without root or su )


    Hi,

    I want to run my application on 443 port.
    sunraise76 is the user id in the system.

    Is it possible to run the application without adding this user in sudo user's list?
    If not, Please tell me the most restricted way to start the application. the sunraise76 user should not have any additional prevlieges except running the applicaiton on 443 port.

    Thanks and Regards,

    Ravindra

  2. #2
    Linux Newbie
    Join Date
    Jul 2005
    Location
    ~/home
    Posts
    105
    what application are we talking about?
    Help me getting a Opera licence
    Beginning with debian? -> read THIS!

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4
    It is java application.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Jul 2005
    Location
    ~/home
    Posts
    105
    Port 443 is normally used by apache ssl.

    Why does your app must run on a lower port?
    Every port below 1024 is reservd for root.

    Maybe look for an alternative like redirecting the port?
    Something like this iptables rule:
    Code:
    iptables -t nat -A PREROUTING -p tcp --dport your-port -i eth0 -j REDIRECT --to-port 443
    This way you can run your app on any port you like,
    and have no trouble with the root story.
    (google -> port redirection)

    [edit]
    Disclaimer:
    i am no iptables heroe, don't copy/paste this rule.
    Help me getting a Opera licence
    Beginning with debian? -> read THIS!

  6. #5
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4
    My application is running on some other port actually. like 2000
    So if a system is protected by firewall, they are unable to connect to 2000 port.
    So i am opening my application to run on both 2000 and 443. Firewall allows 443 port to connect. If a client is unable to connect 2000, he will now try to connect 443 and he will succeed.

    So for this reason, I want to run my application on 443 port. SInce it is a standard port, it is not allowing me to open the port. At the same time i do not want su/root permission for this user ( sunraise76) only to run the application on 443

  7. #6
    Linux Newbie
    Join Date
    Jul 2005
    Location
    ~/home
    Posts
    105
    I don't think this will work.
    Like i said, i am no expert, just a hobbyist.

    But this topic conferms my toughts
    http://www.linuxquestions.org/questions/history/343115
    The last reply gives an interesting option.
    Help me getting a Opera licence
    Beginning with debian? -> read THIS!

  8. #7
    Just Joined!
    Join Date
    Aug 2005
    Posts
    4
    Ok. The following way is fine for me.

    After start of the application, the applicaiton should demote the user from root to my myser id: sunraise76

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •