Dear Dspace Experts,
I wish to know the correct permissions for the directories [dspace]
and [dspace-source] prior to running Maven and Ant.
I am using the definitions of [dspace] and [dspace-source] as on this page:
https://wiki.lyrasis.org/display/DSDOC6x/Installing+DSpace
Here is what I have been doing till now:
For Running Maven (as user dspace):
I first make sure that the dspace user owns the [dspace-source] directory.
sudo chmod 700 -R [dspace-source]
( Basically rwx for [dspace-source])
mvn package
For Running Ant as user dspace:
sudo chmod 500 -R [dspace-source]
( Basically READ and EXECUTE permission for [dspace-source])
sudo chmod 200 -R [dspace]
( Amounts to WRITE permission for [dspace])
sudo chmod u+x -R [dspace]
This is so that the installed files can be executed
sudo chmod g+s -R [dspace]
This is so that the newly created files in [dspace] should inherit the
group ( which is the same as the dspace user). so that permissions are
inherited.
sudo chmod 700 -R [dspace-source]
Then I do, as user dspace:-
cd [dspace-source]/dspace/target/dspace-installer
ant fresh_install
Can someone here comment on my attempt ? Please share the best practice.
Thank you,
Ashim