On Wed, Feb 26, 2020 at 10:30:57AM +0530, Ashim Kapoor wrote: > I am reading this > <https://wiki.lyrasis.org/display/DSDOC6x/Installing+DSpace> > > At one place it says : > # Change [dspace] and all subfolders to be owned by "tomcat" > chown -R tomcat:tomcat [dspace] > > At another place it says : > mkdir [dspace] > chown dspace [dspace]
Thank you for pointing this out. I thought we had removed all of that confusion. > I think that FIRST we have to do :- > > 1. chown dspace [dpspace] > 2. Then run maven and ant > > When I am building the webapp using maven and ant the user dspace needs > ownership over the [dspace] directory. > > Once it is built, THEN we should do :- > > chown -R tomcat:tomcat [dspace] > > So that tomcat has permissions over dspace directory. > > Do I understand this correctly? I think that would work. But, read on. > Query: Suppose after running maven and ant, I do:- > > cp -R [dspace]/webapps/* [tomcat]/webapps* > > Then does tomcat still need to have permissions over [dpsace] ? In other > words, do I still need to do:- > > chown -R tomcat:tomcat [dspace] Tomcat needs read access to all of the files in [dspace], and write access to many of them. The easiest way to do this is to have them all owned by the account which runs Tomcat, with rwx access for owner. The documentation calls that account 'tomcat', but on your system Tomcat may have been installed to use an account with a different name. Whatever that account is called, it should own the files that make up the installed instance of DSpace ([dspace]). The build directory ([dspace-source]) can be owned by any account you choose. You just need a way to run the installer so that it can read the [dspace-source] directory tree and write the [dspace] directory tree. There is no need for a separate 'dspace' account. We need to finish removing that from the documentation. DSpace does not know or care about OS accounts. Tomcat has to care because it is what needs the permissions -- DSpace runs inside Tomcat and uses Tomcat's permissions. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/20200226144157.GC8836%40IUPUI.Edu.
signature.asc
Description: PGP signature