1

For source controlling, I installed SVN .After that Add SVN Admin add-on in Webmin to configure users and their permission visually.
But I got an error when commit a new file/folder to repository. It seems the problem comes from user permission in repository directory: SVN Admin make repository with 'csvn' user but Apache can't write in the repository folder.
I don't want to add 777 permission to repository or change the owner to Apache, because after any change in repository by SVN Admin, this problem returns.

Whats the best solution to solve the problem?

M-Razavi
  • 2,489
  • 1
  • 30
  • 42

1 Answers1

3

Adding group write permissions to the folder and adding the apache user to the csvn user's group should help with this: chmod g+w /svn/repository then usermod -a -G csvn apache (substituting the correct path, user and group names - it's group first then username in the usermod command). Hope that gets it working for you.

orbrey
  • 366
  • 1
  • 6
  • I have done this approach, It fix problem for current repository. But if I add new repository, I have to do " chmod g+w /svn/newRepository " for new repo. – M-Razavi Jan 06 '15 at 12:12
  • 1
    That'll always be the case I think. If it's too much of a pain you could always set something up in cron that'll run that command every day/hour/whatever on the directory you store your repos in though? – orbrey Jan 06 '15 at 12:15