cvs不能提交 Permission denied
Posted on 2008-06-05 14:27 Fingki.li 閱讀(6216) 評論(1) 編輯 收藏 所屬分類: About development今天一個(gè)朋友問題我一個(gè)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時(shí)也遇到過這個(gè)經(jīng)典問題,用戶權(quán)限問題:
問題就出現(xiàn)在目錄的權(quán)限上.我們安裝CVS服務(wù)器時(shí)一般都用的是混合模式登錄,需要windows和CVS共同驗(yàn)證。
要登錄CVS,必須同時(shí)是CVS用戶和WINDOW用戶,并且這個(gè)用戶要對CVS目錄有讀寫權(quán)限。
一般我們新建的CVS用戶,默認(rèn)在WINDOW里只是普通用戶,對CVS目錄只有讀權(quán)限,但沒有寫權(quán)限,所以可以獲取文件,但當(dāng)CVS 提交commit時(shí),會(huì)報(bào)錯(cuò) Permission denied.
所以,遇到這種情況,就把你的CVS用戶在window(CVS服務(wù)器所在的機(jī)器)上修改為Administrator權(quán)限。
在網(wǎng)上又摘錄一些問題及解決如下:
癥狀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的用戶此工作目錄的讀寫權(quán)限
癥狀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 *****
解決:應(yīng)為我用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有此權(quán)限
?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時(shí)也遇到過這個(gè)經(jīng)典問題,用戶權(quán)限問題:
問題就出現(xiàn)在目錄的權(quán)限上.我們安裝CVS服務(wù)器時(shí)一般都用的是混合模式登錄,需要windows和CVS共同驗(yàn)證。
要登錄CVS,必須同時(shí)是CVS用戶和WINDOW用戶,并且這個(gè)用戶要對CVS目錄有讀寫權(quán)限。
一般我們新建的CVS用戶,默認(rèn)在WINDOW里只是普通用戶,對CVS目錄只有讀權(quán)限,但沒有寫權(quán)限,所以可以獲取文件,但當(dāng)CVS 提交commit時(shí),會(huì)報(bào)錯(cuò) Permission denied.
所以,遇到這種情況,就把你的CVS用戶在window(CVS服務(wù)器所在的機(jī)器)上修改為Administrator權(quán)限。
在網(wǎng)上又摘錄一些問題及解決如下:
癥狀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的用戶此工作目錄的讀寫權(quán)限
癥狀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 *****
解決:應(yīng)為我用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有此權(quán)限