Hello, Does setting these permissions allow you tu run ant ?
Kind regards, On Wednesday, April 28, 2021 at 3:51:32 PM UTC+1 [email protected] wrote: > 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 > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/5e473a69-be58-4c14-ad98-6316281cc969n%40googlegroups.com.
