LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-26-2005, 04:52 AM   #1
prasad_koukuntla
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
can we access port 443 without root permission


I have my application running on port 2xxx,but people behind the firewall are uable to access that application.Now i want my application running on Port 443(this is fixed),such that people behind firewall can access it.
as far as i know ports with range 1-1024 are reserved.

1)is port 443 can be opened with user permissions?

2a)if no,How should I promote a user to root and demote the user (who has been promoted as root) to user.
2b) and is it possible to create socket on port 443 with root permissions and read and write to the socket as user.

Iam using jdk1.5 and native (c) methods and linux server in my application.

Any help regarding this is welcomed.
 
Old 07-31-2005, 03:03 PM   #2
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Howzit

I need some more info before giving u a solution.

Is that machine facing the internet directly or is it behind a FW?

Is this application a self developed app or a common open source application?

cheers
 
Old 07-31-2005, 05:52 PM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
is port 443 can be opened with user permissions?
No

Quote:
if no,How should I promote a user to root and demote the user (who has been promoted as root) to user.
Most system services (apache being a good example) start as root, bind to the port and then fork off one or more processes running under an unpriveleged account to handle requests.

Quote:
and is it possible to create socket on port 443 with root permissions and read and write to the socket as user.
I think so, see above.

I'm a sysadmin not a programmer so I don't know the exact way you'd go about programming this - its something you should've asked in the programming forum.

Another solution would be to simply use iptables to redirect port 2xxx to port 443.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Port 443 Verbal Kint Linux - Software 0 10-04-2005 03:07 AM
SSH on port 443 Randvegeta Linux - Networking 4 09-25-2005 06:17 AM
access using port 443 gtoerner Linux - Security 3 07-14-2005 05:48 PM
turn off http port 80, keep https port 443 lothario Linux - Networking 6 02-11-2005 04:06 AM
Allow this particular web page access on port 443 ONLY lothario Linux - Software 2 01-14-2005 10:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration