Linux CVS 错误:无法创建锁定目录...权限被拒绝
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5904458/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
CVS Error: failed to create lock directory... Permission denied
提问by AnnanFay
I'm using using TortoiseCVS to access the CVS server. I get the following error:
我正在使用 TortoiseCVS 访问 CVS 服务器。我收到以下错误:
In D:\source\foo: "C:\Program Files\CVSNT\cvs.exe" -q update -P -d
CVSROOT=:ssh:[email protected]:/home/cvsroot
cvs update: failed to create lock directory for `/home/cvsroot/foo' (/var/lock/cvs/foo/#cvs.lock): Permission denied
cvs update: failed to obtain dir lock in repository `/home/cvsroot/foo'
cvs [update aborted]: read lock failed - giving up
Error, CVS operation failed
I had this problem before and managed to fix it, however this time I've not been able to figure it out. I believe it's related to different people committing files with their own ownership.
我以前遇到过这个问题并设法解决了它,但是这次我无法弄清楚。我相信这与不同的人以自己的所有权提交文件有关。
After reading a few articles online I've tried changing /home/cvsroot and /home/cvsroot/foo to 777 permissions, and recursively changing the ownership of /home/cvsroot/ to cvs:cvs (of which I am a member).
在网上阅读了几篇文章后,我尝试将 /home/cvsroot 和 /home/cvsroot/foo 更改为 777 权限,并递归地将 /home/cvsroot/ 的所有权更改为 cvs:cvs(我是其中的成员)。
采纳答案by Danilo Tommasina
The lock file is being created in /var/lock/cvs/foo/
you should check the permissions of that directory.
正在创建锁定文件,/var/lock/cvs/foo/
您应该检查该目录的权限。
回答by user2452561
Make sure the checkout repository has the permission to checkin the files.
确保签出存储库具有签入文件的权限。
I have checkout the directory cvs -d @cvs:/files/cvs co vcommon
我已经签出目录 cvs -d @cvs:/files/cvs co vcommon
But this rep doesnt have permission to checkin the files in the package folder.
但是该代表无权检入包文件夹中的文件。
Problem solved by checking out below: cvs -d @cvs:/files/cvs/vcommon co package
问题通过以下检查解决: cvs -d @cvs:/files/cvs/vcommon co package
回答by drwatsoncode
I had an issue where my account had not been added to the "users" group. So even though permissions looked good, I still wasn't able to checkout any repositories. Once I was added to the users group, it fixed everything.
我遇到了一个问题,我的帐户没有被添加到“用户”组中。因此,即使权限看起来不错,我仍然无法检出任何存储库。一旦我被添加到用户组,它就解决了所有问题。