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.
- 08-03-2005 #1Just 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
- 08-03-2005 #2Linux Newbie
- Join Date
- Jul 2005
- Location
- ~/home
- Posts
- 105
what application are we talking about?
- 08-03-2005 #3Just Joined!
- Join Date
- Aug 2005
- Posts
- 4
It is java application.
- 08-03-2005 #4Linux 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:This way you can run your app on any port you like,Code:iptables -t nat -A PREROUTING -p tcp --dport your-port -i eth0 -j REDIRECT --to-port 443
and have no trouble with the root story.
(google -> port redirection)
[edit]
Disclaimer:
i am no iptables heroe, don't copy/paste this rule.
- 08-03-2005 #5Just 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
- 08-03-2005 #6Linux 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.
- 08-03-2005 #7Just 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


Reply With Quote
