CVS 错误:无法创建锁定目录...权限被拒绝
我正在使用 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
我以前遇到过这个问题并设法解决它,但是这次我无法解决它。我相信这与不同的人以自己的所有权提交文件有关。
在网上阅读了几篇文章后,我尝试将 /home/cvsroot 和 /home/cvsroot/foo 更改为 777 权限,并递归地将 /home/cvsroot/ 的所有权更改为 cvs:cvs (我是其中的成员)。
I'm using using TortoiseCVS to access the CVS server. I get the following error:
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).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
锁定文件正在
/var/lock/cvs/foo/
中创建,您应该检查该目录的权限。The lock file is being created in
/var/lock/cvs/foo/
you should check the permissions of that directory.确保签出存储库有权签入文件。
我已经签出了目录
cvs -d @cvs:/files/cvs co vcommon
但是该代表无权签入包文件夹中的文件。
通过检查以下内容解决了问题:
cvs -d @cvs:/files/cvs/vcommon co 包
Make sure the checkout repository has the permission to checkin the files.
I have checkout the directory
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
我遇到了一个问题,我的帐户尚未添加到“用户”组中。因此,尽管权限看起来不错,但我仍然无法检查任何存储库。一旦我被添加到用户组,它就解决了一切。
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.