I agree with what Mark Wood has stated. Here's a bit more info to describe some common options for setting up Tomcat + DSpace.
[Option#1:] If you are installing Tomcat manually (NOT via a Linux package manager), then you may want to install it such that it is owned by a user named "dspace" (or similar). The current DSpace Documentation essentially assumes you are installing Tomcat manually (by going to http://tomcat.apache.org and downloading the zipped up binaries). [Option#2:] If you are using the Tomcat package provided by your Linux OS package manager, then you may want to just run DSpace as the "tomcat" user (rather than creating a new "dspace" user). This is perfectly acceptable. As Mark notes, the key is that you want Tomcat & DSpace to be owned by the same user (but it doesn't matter who that user is). [Option#3] (what I tend to do): If you are on Ubuntu, you could use the "tomcat*-user" package to actually install Tomcat under whatever user account you want. For example: # Install Tomcat7 & its "user" tools $ sudo apt-get install tomcat7 tomcat7-user # Create a new Tomcat instance in /home/dspace/tomcat (or where ever you want), using the "tomcat7-create-instance" script provided by 'tomcat7-user' package $ sudo tomcat7-create-instance /home/dspace/tomcat # Change that Tomcat instance to be owned by 'dspace' user $ sudo chown -R dspace:dspace /home/dspace/tomcat After these steps, you would then have a Tomcat 7 instance installed at /home/dspace/tomcat, owned by 'dspace'. This Tomcat 7 instance essentially just references/calls back to the main Tomcat binaries in /usr/share/tomcat7 (which are obviously managed/updated by the Ubuntu package manager). - Tim On 6/5/2013 7:39 AM, Mark H. Wood wrote: > On Wed, Jun 05, 2013 at 09:59:04AM +0200, Hilton Gibson wrote: >> Hi Tim > > I'm not Tim, but here's my 2ยข worth anyway. > >> When creating the "dspace" user and then assigning this user the Tomcat6 >> account, how do we deal with file permissions needed by Tomcat6 for the >> following system files; >> *dspace@ir1:~$ dpkg -L tomcat6* >> */.* >> */usr* >> */usr/share* >> */usr/share/doc* >> */usr/share/doc/tomcat6* >> */usr/share/doc/tomcat6/changelog.Debian.gz* >> */usr/share/doc/tomcat6/copyright* >> */usr/share/tomcat6* >> */usr/share/tomcat6/webapps* >> */usr/share/tomcat6/webapps/default_root* >> */usr/share/tomcat6/webapps/default_root/index.html* >> */usr/share/tomcat6/webapps/default_root/META-INF* >> */usr/share/tomcat6/webapps/default_root/META-INF/context.xml* >> */var* >> */var/cache* >> */var/cache/tomcat6* >> */var/log* >> */var/log/tomcat6* >> */var/lib* >> */var/lib/tomcat6* >> */var/lib/tomcat6/common* >> */var/lib/tomcat6/common/classes* >> */var/lib/tomcat6/server* >> */var/lib/tomcat6/server/classes* >> */var/lib/tomcat6/webapps* >> */var/lib/tomcat6/shared* >> */var/lib/tomcat6/shared/classes* >> */etc* >> */etc/init.d* >> */etc/init.d/tomcat6* >> */etc/tomcat6* >> */etc/tomcat6/context.xml* >> */etc/tomcat6/web.xml* >> */etc/tomcat6/logging.properties* >> */etc/tomcat6/policy.d* >> */etc/tomcat6/policy.d/02debian.policy* >> */etc/tomcat6/policy.d/50local.policy* >> */etc/tomcat6/policy.d/03catalina.policy* >> */etc/tomcat6/policy.d/01system.policy* >> */etc/tomcat6/policy.d/04webapps.policy* >> */etc/tomcat6/catalina.properties* >> */etc/tomcat6/tomcat-users.xml* >> */etc/tomcat6/Catalina* >> */etc/tomcat6/Catalina/localhost* >> */etc/tomcat6/server.xml* >> */etc/cron.daily* >> */etc/cron.daily/tomcat6* >> */etc/default* >> */etc/default/tomcat6* >> */usr/share/doc/tomcat6/README.Debian.gz* >> */var/lib/tomcat6/conf* >> */var/lib/tomcat6/work* >> */var/lib/tomcat6/logs* > > If your servlet container (e.g. Tomcat) already has an account, that > account should own the DSpace files. You only need to create a user > "dspace" if you are installing Tomcat from source and can't decide > what to name its account. (In that case I would name it "tomcat" and > let the DSpace files be owned by "tomcat". There's nothing > significant about a user named "dspace".) > > Anyway, whatever owns Tomcat should own DSpace and vice versa. If > your distribution creates an account when installing Tomcat, use that > for DSpace as well. Trying to make it work with two separate accounts > is painful and unnecessary, as is trying to rejigger Tomcat to run as > a different account than what your package manager used to install it. > > The DSpace documentation seems to assume that you are installing all > prerequisites by hand and have no other use for Tomcat. I've schemed > to remold that section but haven't yet found an acceptable way to get > rid of this confusing "dspace" user. I continue to watch it from the > shadows, devising strategems.... > > > > ------------------------------------------------------------------------------ > How ServiceNow helps IT people transform IT departments: > 1. A cloud service to automate IT design, transition and operations > 2. Dashboards that offer high-level views of enterprise services > 3. A single system of record for all IT processes > http://p.sf.net/sfu/servicenow-d2d-j > > > > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech > List Etiquette: > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

