在用svn import或svn commit时,出现下列错误:
svn: Can't create directory '/home/svnroot/repository/dev/db/transactions/0-1.txn': Permission denied
或
svn: Can't create file '/home/svnroot/repository/dev/db/transactions/0-1.txn': Permission denied
主要原因是:/home/svnroot/repository/dev目录对于你的svn用户(如:svnroot)没有权限,可能是因为你用svnadmin create时是以root运行的,所以,mod_dav_svn就没有相应权限等
解决:
chown -R svnroot /home/svnroot/repository/dev
chgrp -R svnroot /home/svnroot/repository/dev
chmod -R 775 /home/svnroot/repository/dev
因为要使mod_dav_svn模块生效,必须重启apache
/usr/local/apache/bin/apachectl restart