Project

General

Profile

reposman.rb permissions issue

Added by David Higgins about 13 years ago

Good day,
I have redmine set up and working on a Debian box. I have SVN integration working and can create repositories using the Redmine frontend. I have user control through Redmine and can do SVN checkouts of the code with the respective users.

My issue lies in the permissions for the webserver (Apache) to be able to see the SVN changelogs and diffs and such. If I run:
./reposman.rb --svn-dir=/var/svn/ --redmine-host=myhost.org -k *APIkey*
then my repos are correctly created with permissions root:projectgroup, where projectgroup changes based on the project unique name in Redmine.
This works fine for checkins and checkouts via SVN, but the webserver is unable to access the SVN directorys for the diffs and such.

If I run the above command with the --owner=www-data option set, all of the groups get set to 'root'. I can now view the diffs and such, but users can no longer do checkouts etc

I can chown -R /var/svn www-data and everything works properly, but any time reposman runs, this gets reset.

Can someone point me in the right direction so that I can have my projects owned by their respective groups, but also have the webserver able to get the diffs etc? This issue has been wrecking my head for a few days now.

Thanks


Replies (1)

RE: reposman.rb permissions issue - Added by David Higgins about 13 years ago

My temporary fix is to add a chown command into my cron script. This works, but it means that the repo isn't visible to the webpage until the next time the script runs, which is suboptimal

    (1-1/1)