Solved

Tomcat/Linux User

Posted on 2002-04-15
6
705 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
Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

 
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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:

696 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