SVN - 权限被拒绝 [英] SVN - Permission Denied

查看:505
本文介绍了SVN - 权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了一个Linux服务器并在其上安装Apache和SVN和dav_svn。现在,当我尝试上传 HTTPS://x.x.x.x:X / SVN /回购与乌龟SVN我得到

I have set up a Linux Server and installed Apache and SVN and dav_svn on it. Now, when I try to upload to https://x.x.x.x:x/svn/repo with Tortoise SVN I get

无法打开文件/服务器/ SVN /回购/ DB / TXN-目前锁定:权限被拒绝。

Can't open file '/server/svn/repo/db/txn-current-lock': Permission denied

我已经正确地设置我的SSL(我可以检出,没有任何问题,甚至由于远程端口转发)。

I have Set up my SSL correctly (I can checkout, no problems, even remotely due to Port Forwarding).

我猜这与存储库文件夹的所有权的Linux做,我怎么必须设置该/什么是命令?我使用的Ubuntu 9.04服务器+ Apache2的。

I'm guessing this has to do with the Linux Ownership of the Repository folders, How must I set this/ what are the commands? I'm using Ubuntu 9.04 Server + Apache2.

推荐答案

这是一个常见的​​问题。你几乎肯定运行到权限问题。为了解决这个问题,请确保阿帕奇用户阅读到您的整个资源库/写访问。要做到这一点, CHOWN R的阿帕奇:阿帕奇* 搭配chmod -R 664 * 为您的svn库下的一切。

This is a common problem. You're almost certainly running into permissions issues. To solve it, make sure that the apache user has read/write access to your entire repository. To do that, chown -R apache:apache *, chmod -R 664 * for everything under your svn repository.

此外,请参阅 这里 和<一个href=\"http://www.svnforum.org/2017/viewtopic.php?p=19591&sid=8a33d98035dfd744831017e51c23a054\">here如果你还是卡住了。

Also, see here and here if you're still stuck.

在664字符串是一个八进制(基数8)重新权限的presentation。有三个数字在这里,再presenting权限的所有者其他人的(有时也被称为世界),分别用于该文件或目录。

The "664" string is an octal (base 8) representation of the permissions. There are three digits here, representing permissions for the owner, group, and everyone else (sometimes called "world"), respectively, for that file or directory.

注意,每个基地8位可以(通过111'7'000'0')重新$ P $ 3位psented。每个位意味着什么:

Notice that each base 8 digit can be represented with 3 bits (000 for '0' through 111 for '7'). Each bit means something:


  • 第一位:读取权限

  • 第二位:写权限

  • 第三位:执行权限

例如,764上的文件将意味着:

For example, 764 on a file would mean that:


  • 所有者(第一位数)具有读/写/执行(7)权限

  • 组(第二位)具有读/写(6)权限

  • 其他人(第3位)已经阅读(4)权限

。希望清除的东西了!

这篇关于SVN - 权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆