Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2015 10:27:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 203888] www/tomcat8: temp directory should be owned by www to allow applications to use it
Message-ID:  <bug-203888-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203888

            Bug ID: 203888
           Summary: www/tomcat8: temp directory should be owned by www to
                    allow applications to use it
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ale@FreeBSD.org
          Reporter: ari.suutari@syncrontech.com
             Flags: maintainer-feedback?(ale@FreeBSD.org)
          Assignee: ale@FreeBSD.org

When tomcat8 is installed from ports the temp directory
(/usr/local/apache-tomcat-8.0/temp) is owned by root. When web applications
attempt to use this directory for temporary work files things go wrong, as
tomcat is running as www user.

If directory ownership is changed to www everything works.

Snip from pkg-plist:

%%T%%/lib/websocket-api.jar
%%T%%/temp/safeToDelete.tmp
@dir %%T%%/temp
@owner %%WWWOWN%%
@group %%WWWGRP%%
%%T%%/webapps/ROOT/RELEASE-NOTES.txt
%%T%%/webapps/ROOT/WEB-INF/web.xml

If this is changed to:

%%T%%/lib/websocket-api.jar
%%T%%/temp/safeToDelete.tmp
@owner %%WWWOWN%%
@group %%WWWGRP%%
@dir %%T%%/temp
%%T%%/webapps/ROOT/RELEASE-NOTES.txt
%%T%%/webapps/ROOT/WEB-INF/web.xml

then we would get correct permissions during package install.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203888-13>