tomcat7 from aptitude repositories does not deploy or explode applicationsapplications

Bug #1076155 reported by yuccanel

This bug report was converted into a question: question #214261: System tomcat7 instance has restricted permissions in /var/lib/tomcat7 - why?.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat7 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hello, I am actually a Java developer, but I have just converted an old stationary into my own web server using Ubuntu 12.10(and proudly so).

To do this, I installed apache2, mod-jk which all worked fine.

I proceeded to install tomcat 7 through sudo apt-get install tomcat7, ran it and got the Ubuntu version of "it works". Apache successfully forwards requests to tomcat.

My next step is to install vsftpd. I configure this as needed so that I am able to deploy remotely with use of Flezilla.
I also install openssh-server so that I am able to connect via ssh.

Now I think the problem is rgarding the ownership of tomcat...
I am the sole user of this machine and Tomcat is installed under user "root" and group "tomcat".

This prohibits me from uploading applications in Filezilla to the /var/lib/tomcat7 webapps location.
Even if I manage, tomcat fails to deploy the webapplications.

To fix and verify the bug, I downloaded Tmcat from apache and installed it myself and succesfully have my website up. This proves that my configurations are correct as I used the same server.xml settings.

I repeated this process twice with Ubuntu aptitude Tomcat and even reinstalled the system and experienced no change.

I was told that it is better for a production server to stick with aptitude packages as they are more secure. I don't think this is possible. I even attempted to add my amin user to the tomcat7 group, but can't as I can't log in as root.

Revision history for this message
yuccanel (yuccanel) wrote :

Sorry for the typos. I have had multiple brain surgeries and lost some vision.

affects: ubuntu → tomcat7 (Ubuntu)
Revision history for this message
James Page (james-page) wrote :

Converting to a question; all of this is normal behavior and the reporter needs to understand how security works in Ubuntu.

Changed in tomcat7 (Ubuntu):
status: New → Invalid
Revision history for this message
yuccanel (yuccanel) wrote :

How do I deploy my applications then from remote FileZilla as the webapps directory is not writable for me as I am unable to log in as user with Tomcat or root privileges? Must I 'chown' the 'webapps' directory? Ehat is the more secure way of running this?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.