Operating System - Tru64 Unix
1830226 Members
1919 Online
109999 Solutions
New Discussion

how to use 80 port

 
chenbin_1
Occasional Advisor

how to use 80 port

i have a web server, ,i started it use root user,it's no problem.
but when i create a new user,such as named newUser,and this newUser grouped in
newGroup(my creaeted),users,system,when i start a same kind of web server(not
that one running in root env,it's a new one running in this newUser),i found
that the server didn't started normally,it's shows :
Unable to create a server socket on Channel Default for port: 80. java.net.BindE
xception: Permission denied Perhaps another process is using port 80.
i'm sure that the server running in root was not started,and after failuring to
start this server,i start the server in root ,it can starte normally again.
what 's the reason of it?
8 REPLIES 8
Ralf Puchner
Honored Contributor

Re: how to use 80 port

could you please be more specific? You talking about things which are application depended without tellung us the used application, versions, OS.

If it is a "open source" software please post your problem on the software vendor site. HP supports only the customized IAS apache webserver and only parts of it.

Btw. from network basics: Port 80 is below 1024 so in the priviledged port range. Does it work if you change the port > 1024?

Help() { FirstReadManual(urgently); Go_to_it;; }
chenbin_1
Occasional Advisor

Re: how to use 80 port

sorry :)
the web server is Weblogic Server ,and OS is Tru64 5.1B,WebLogic Server running in root user is normal,and this server is useing 80 port,but when i create a new user ,this user user can't start the server ,because it 's using the 80 port ,perhaps the new user has no privilege to use the port below 1024,mybe it can be add root privilege to this user ,but i want not to add all other root privilege to this user ,instead of using 80 port
Ralf Puchner
Honored Contributor

Re: how to use 80 port

other possibility is to set the "Suid" bit to the executable but this will start the webserver with root privileges.

But it is wise to post the question within the software vendor forum of your webserver and not within the forum of the OS...
Help() { FirstReadManual(urgently); Go_to_it;; }
Michael Schulte zur Sur
Honored Contributor

Re: how to use 80 port

Hi,

programmes, that open ports below 1024 need root priviledges. Why not take another like 8080 or 8081?

greetings,

Michael
Ralf Puchner
Honored Contributor

Re: how to use 80 port

Michael,

I've given the same information on my 1st posting. thanks for reading all posting prior to answer.... ;-)
Help() { FirstReadManual(urgently); Go_to_it;; }
chenbin_1
Occasional Advisor

Re: how to use 80 port

ok,if i start this server in 8080 port ,is there any way to redirect the request from 80 to 8080 port ? because in linux ,there is a similar command such as :
iptables -t nat -A OUTPUT -d localhost -p tcp --dport 80 -j REDIRECT --to-ports 8080.

i have ask the Bea about this problem,but i want to know hp's reply :)

the reason i want to use a new user instead of the root user is a tip in document System Configuration and Tuning ,it' says:
The max_proc_per_user attribute specifies the maximum number of
processes that can be allocated at any one time to each user, except superuser.
so i think if the modification has no work in root user,i have to use a new user and modify the vm subsystem
Ralf Puchner
Honored Contributor

Re: how to use 80 port

you are mixing techniques and explanations.
iptables is the paket filter option within linux. As reading within the manual of the paket filter option there is no "port redirect" feature within Tru64.

Why not using autoconfig proxy setup on client side which allows configuration and redirection on the fly?
Help() { FirstReadManual(urgently); Go_to_it;; }
Michael Schulte zur Sur
Honored Contributor

Re: how to use 80 port

Hi,

you could run it with port 8080 and only the call from the browser is slightly different. www.test.com:8080

hth,

Michael

ps. Ralf, I do read the postings but sometimes my concentration is low and then I miss things. Just see it as confirmation of your expertise! ;-)))