?
Solved

Tomcat/Linux User

Posted on 2002-04-15
6
Medium Priority
?
709 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 
LVL 2

Accepted Solution

by:
coreyit earned 200 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

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

752 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