不能在ubuntu上用dav提交svn

所以有几个类似的问题在serverfault …但解决scheme仍然躲过我。

我正在运行颠覆在Ubuntu 9.04 ..通过apache2.2.x ….

我明白了

Commit failed (details follow): Can't make directory '/home/kirb/svn/dav/activities.d': Permission denied 

当我尝试提交。

这绝对是一个权限问题…但如何解决这个问题仍然是我的问题。

我的仓库在/ home / kirb / svn。

SVN提交错误说chgrp ..但我似乎无法。 所有的Apache DAV的东西似乎正在工作。 我可以通过浏览器访问我的资料库。

道歉,如果我在这里错过简单的东西。

在此先感谢,Kirb

额外的编辑:我不能sudo目录上的chgrp

 sudo chgrp -R www-data /home/kirb/svn; chmod -R g+rwx /home/kirb/svn [sudo] password for kirb: chmod: changing permissions of `/home/kirb/svn': Operation not permitted chmod: changing permissions of `/home/kirb/svn/format': Operation not permitted chmod: changing permissions of `/home/kirb/svn/conf': Operation not permitted chmod: cannot read directory `/home/kirb/svn/conf': Permission denied chmod: changing permissions of `/home/kirb/svn/locks': Operation not permitted chmod: cannot read directory `/home/kirb/svn/locks': Permission denied chmod: changing permissions of `/home/kirb/svn/db': Operation not permitted chmod: cannot read directory `/home/kirb/svn/db': Permission denied chmod: changing permissions of `/home/kirb/svn/README.txt': Operation not permitted chmod: changing permissions of `/home/kirb/svn/hooks': Operation not permitted chmod: cannot read directory `/home/kirb/svn/hooks': Permission denied 

您需要将svn文件更改为在www-data组中, 使其全部可以分组写入。 例如,如果存储库是/var/svn ,那么

 sudo chown -R root:www-data /var/svn sudo chmod -R 775 /var/svn 

应该这样做。 (虽然,想一想,你可能已经知道了这一点…)

由于您使用apache访问文件夹,可能用户www-data需要能够读取/写入文件夹。