CVS 错误:无法创建锁定目录...权限被拒绝

发布于 2024-11-06 00:36:27 字数 755 浏览 1 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

(り薆情海 2024-11-13 00:36:27

锁定文件正在 /var/lock/cvs/foo/ 中创建,您应该检查该目录的权限。

The lock file is being created in /var/lock/cvs/foo/ you should check the permissions of that directory.

↙温凉少女 2024-11-13 00:36:27

确保签出存储库有权签入文件。

我已经签出了目录
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

如此安好 2024-11-13 00:36:27

我遇到了一个问题,我的帐户尚未添加到“用户”组中。因此,尽管权限看起来不错,但我仍然无法检查任何存储库。一旦我被添加到用户组,它就解决了一切。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文