Solved

Tomcat/Linux User

Posted on 2002-04-15
6
682 Views
Last Modified: 2013-11-24
I am trying to set up Tomcat to run under a user other than root.  I've changed the owner of the tomcat directories and tried to start tomcat with the new user, but I see in catalina.out the message:

java.net.BindException: Permission Denied.

I've already verified that no other processes are using the desired port (which is 80).

Any thoughts?
0
Comment
Question by:Laminamia063099
6 Comments
 
LVL 2

Expert Comment

by:coreyit
ID: 6943199
Any processes on a port below 1024 must be run by a super user.

-corey
0
 
LVL 3

Expert Comment

by:shyamkumarreddy
ID: 6944280
Laminamia,
Do you have permission to create socket. I don't think, Please check for the user privilege for socket creation. That is the one probs.
Other one is. Port being already used.
Pls verify which port u r running the tomcat and change to any port.

Shyam
0
 
LVL 3

Author Comment

by:Laminamia063099
ID: 6944950
Thanks all for your quick response.

Corey:
  To be a super-user does not require that the user be root, correct?  If so, what do I need to do to set up a user, for instance the user 'tomcat', to be a 'super-user' and thus have the privileges necessary?

Thanks!
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 2

Accepted Solution

by:
coreyit earned 100 total points
ID: 6946833
I'm pretty sure that you can assign super-user rights to other users on linux, but I'm not sure how to go about that. If you are able to run linuxconf (as root), I think you'll find some options.

A better option (probably) is to configure apache and tomcat to work together so that apache listens on port 80 to pass jsp/servlet requests to tomcat. Of course, you'd still have to have the rights to stop and start apache, but once the connection is set up, you should seldom have to do that.

-corey
0
 
LVL 9

Expert Comment

by:Venci75
ID: 7940722
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by: coreyit
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Venci75
EE Cleanup Volunteer
0
 
LVL 3

Author Comment

by:Laminamia063099
ID: 7942424
I haven't been able to implement the suggestion, but the answer as to why I could not is correct.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
sumHeights  challenge 17 60
changeXy challenge 13 57
endX challenge 2 49
mapAB Challlenge 35 85
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now