Re: [Dspace-tech] Owner of Assetstore directories and files
On Mon, Aug 24, 2015 at 7:57 PM, Luiz dos Santos wrote: > It is just a question, why not using the tomcat installed by himself, > instead to user everything as tomcat7 user? > In his case he could just run the comand: "chown -R dspace:tomcat7 *" In > Assetstore directory and certificate that himself that when he run the > batch process that all files have the same permissions? > Sure, if you're installing from binaries downloaded from tomcat.apache.org, you can call your tomcat/dspace user whatever you want. But using binaries kind of defeats the purpose of using a distribution - you'll most likely never do security updates to tomcat. And like I said, if you chown the binaries of Tomcat from the Debian package, it will chown it back during the nearest update and most likely leave you with non-functional DSpace (you most likely won't immediately notice it because only uploads won't work). I speak from my own experience :) Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Owner of Assetstore directories and files
Hi helix, It is just a question, why not using the tomcat installed by himself, instead to user everything as tomcat7 user? In his case he could just run the comand: "chown -R dspace:tomcat7 *" In Assetstore directory and certificate that himself that when he run the batch process that all files have the same permissions? Thanks Luiz On Mon, Aug 24, 2015 at 1:14 PM, helix84 wrote: > Hi David, > > save yourself future headaches and only use the tomcat7 user to own > everything dspace-related on your machine - the dspace installation > directory. For consistency, you can also create the database in Postgres as > the tomcat7 user (i.e. db.username in DSpace would also be tomcat7). > > This applies to both Debian and Ubuntu if you're using the tomcat7 (or any > other tomcat version) distribution package. > > If you notice the generic advice in the DSpace installation docs to run > everything as the "dspace" user, my advice is just an application of the > principle to Debian, where the tomcat package determines the user name > (tomcat7). You shouldn't change the ownership of tomcat's files because > they belong to the package and the package will reinstall them under the > tomcat7 name upon the nearest package upgrade. > > > Regards, > ~~helix84 > > Compulsory reading: DSpace Mailing List Etiquette > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > > > > -- > > ___ > DSpace-tech mailing list > DSpace-tech@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspace-tech > List Etiquette: > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette > -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
Re: [Dspace-tech] Owner of Assetstore directories and files
Hi David, save yourself future headaches and only use the tomcat7 user to own everything dspace-related on your machine - the dspace installation directory. For consistency, you can also create the database in Postgres as the tomcat7 user (i.e. db.username in DSpace would also be tomcat7). This applies to both Debian and Ubuntu if you're using the tomcat7 (or any other tomcat version) distribution package. If you notice the generic advice in the DSpace installation docs to run everything as the "dspace" user, my advice is just an application of the principle to Debian, where the tomcat package determines the user name (tomcat7). You shouldn't change the ownership of tomcat's files because they belong to the package and the package will reinstall them under the tomcat7 name upon the nearest package upgrade. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette