posts - 72, comments - 66, trackbacks - 0, articles - 0

cvs不能提交 Permission denied

Posted on 2008-06-05 14:27 Fingki.li 阅读(6175) 评论(1)  编辑  收藏 所属分类: About development
今天一个朋友问题我一个CVS ERROR。
The server reported an error while performing the "cvs commit" command.
ccookteammeal: cvs [server aborted]: cannot rename file /web/***/WebRoot/WEB-INF/,web.xml, to /web/***/WebRoot/WEB-INF/web.xml,v: Permission denied

回想之前用CVS时也遇到过这个经典问题,用户权限问题:
    问题就出现在目录的权限上.我们安装CVS服务器时一般都用的是混合模式登录,需要windows和CVS共同验证。
要登录CVS,必须同时是CVS用户和WINDOW用户,并且这个用户要对CVS目录有读写权限。
一般我们新建的CVS用户,默认在WINDOW里只是普通用户,对CVS目录只有读权限,但没有写权限,所以可以获取文件,但当CVS 提交commit时,会报错 Permission denied.
    所以,遇到这种情况,就把你的CVS用户在window(CVS服务器所在的机器)上修改为Administrator权限。
在网上又摘录一些问题及解决如下:
症状1:
cvs chacl default:n
cvs [chacl aborted]: server does not support chacl
***** CVS exited normally with code 1 *****
解决:是python跟wincvs不兼容,最后用python221+cvsnt-2.0.41+wincvs1.3中文版

症状2:无法checkout模块
cvs checkout 大狼的工作目录 (in directory E:\CVS\sssss)
cvs server: User user4 cannot access lxwDIR
***** CVS exited normally with code 1 *****
解决:没有给user4的用户此工作目录的读写权限

症状3:无法提交修改,加文件等
cvs commit -m "no message" "新建 文本文档.txt" (in directory E:\CVS\sssss\zylDIR\)
cvs [server aborted]: "commit" requires write access to the repository
***** CVS exited normally with code 1 *****
解决:没有把user4加到writers中去

症状4:无法提交修改,加文件等
cvs add: Empty password used - try 'cvs login' with a real password
cvs [add aborted]: authorization failed: server 192.168.0.105 rejected access to E:/cvs/KHRoot for user user2
***** CVS exited normally with code 1 *****
解决:应为我用user1用户checkout了模块,但用user2修改文件并提交,或加文件,重新用user2再在其他目录checkout一下模块,修改提交就可以了

症状5:无法给模块附用户
cvs chacl user4:rcw
***** CVS exited normally with code 1 *****
cvs [server aborted]: "chacl" requires write access to the repository
解决,我用user4登录了,只有administrator有此权限



Feedback

# re: cvs不能提交 Permission denied  回复  更多评论   

2009-12-28 14:28 by snow_J
经典,经典,太经典了。

只有注册用户登录后才能发表评论。


网站导航: