tomact7 installation is confusing the user with home-directy. Tomcat is saying "directory will not be created"

Bug #1262204 reported by Michael Basse
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tomcat7 (Ubuntu)
New
Low
Unassigned

Bug Description

i installed tomcat7 on a fresh ubuntu 12.04 installation (fully dist-upgraded)

The installation of tomcat7 is telling that no home-directy will be created (sorry its german)

Creating config file /etc/default/tomcat7 with new version
Lege Systembenutzer »tomcat7« (UID 121) an ...
Lege neuen Benutzer »tomcat7« (UID 121) mit Gruppe »tomcat7« an ...
Erstelle Home-Verzeichnis »/usr/share/tomcat7« nicht. <---------- Creating home-directory... NOT
 * Starting Tomcat servlet engine tomcat7 [ OK ]
authbind (1.2.0build3) wird eingerichtet ...

michael@raidbuntu:~$ ls -all /usr/share/tomcat7
insgesamt 32
drwxr-xr-x 4 root root 4096 Dez 18 14:03 . <--------- created during the installation
drwxr-xr-x 284 root root 12288 Dez 18 14:03 ..
drwxr-xr-x 2 root root 4096 Dez 18 14:03 bin
-rw-r--r-- 1 root root 39 Jul 12 2012 defaults.md5sum
-rw-r--r-- 1 root root 1960 Jul 12 2012 defaults.template
drwxr-xr-x 2 root root 4096 Dez 18 14:03 lib

michael@raidbuntu:~$ date
Mi 18. Dez 14:11:26 CET 2013

So as it seems the message from the installer is wrong, because its saying "home-directly will not be created" but it was creating the home.directoy.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: tomcat7 7.0.26-1ubuntu1.2
ProcVersionSignature: Ubuntu 3.5.0-43.66~precise1-generic 3.5.7.23
Uname: Linux 3.5.0-43-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Wed Dec 18 14:08:43 2013
InstallationMedia: Ubuntu-Server 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130214)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: tomcat7
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Michael Basse (michael-alpha-unix) wrote :
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

Can you please try again with a never ubuntu/tomcat release?

Revision history for this message
Michael Basse (michael-alpha-unix) wrote :

No because there is no newer tomcat7 version. Last version is from Tue, 19 Mar 2013 14:48:19 +0100

http://changelogs.ubuntu.com/changelogs/pool/universe/t/tomcat7/tomcat7_7.0.26-1ubuntu1.2/changelog

http://packages.ubuntu.com/precise/tomcat7

tomcat7 (7.0.26-1ubuntu1.2) precise-security; urgency=low

  [Christian Kuersteiner]
  * SECURITY UPDATE: Fix multiple vulnerabilities in Tomcat7
    (LP: #1115053)
    - debian/patches/0013-CVE-2012-2733.patch: Fix for Apache Tomcat Denial of
      Service. Based on upstream patch.
    - CVE-2012-2733
    - debian/patches/0014-CVE-2012-3546.patch: Fix for bypass of security
      constraints. Based on upstream patch.
    - CVE-2012-3546
    - debian/patches/0015-CVE-2012-4431.patch: Fix for bypass of CSRF prevention
      filter. Based on upstream patch.
    - CVE-2012-4431
    - debian/patches/0016-CVE-2012-4534.patch: Fix for CVE-2012-4534 Denial of
      Service Vulnerability. Based on upstream patch.
    - CVE-2012-4534
    - debian/patches/CVE-2012-3439.patch: Fix for DIGEST authentication
      weaknesses. Based on upstream patch.
    - CVE-2012-3439, CVE-2012-5885, CVE-2012-5886, 2012-5887

  [ Jamie Strandboge ]
  * allow for easily running the testsuite:
    - debian/control: add testsuite build-depends
    - debian/rules:
      + add 'testsuite' target
      + add ANT_TS_ARGS for use in the testsuite target
      + cleanup the testsuite
    - add debian/README.source for information on how to use the testsuite

 -- Christian Kuersteiner <email address hidden> Tue, 19 Mar 2013 14:48:19 +0100

Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to file this bug and helping to make Ubuntu better.

The message "Not creating home directory" is just a consequence of the package postinst using the --no-create-home option to adduser as /usr/share/tomcat7 is provided by packaging. I don't believe that there is any problem with doing this.

Do you have a specific problem here apart from the misleading message?

Assuming that you're reporting just the misleading message, the best way forward would be to verify that the message is also misleading in tomcat7 in Debian, and then to file a bug there, as Ubuntu is unlikely to diverge from Debian for such a trivial bug.

Changed in tomcat7 (Ubuntu):
importance: Undecided → Low
Revision history for this message
Michael Basse (michael-alpha-unix) wrote :

Hi Robie,
yes it is just the misleading message, no other issues. Maybe i should have marked this better in my initial report.

I will have a look on the debian site and will take necessary actions there.

Revision history for this message
Dmytro Dovbii (ddovbii) wrote :

Hello friends!
Please tell me what can I do to make this message does not occur during the installation process?

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.