命令行:
SET CVSROOT=D:/CVSNT/Repository
cvs passwd -r administrator -a admin
cvs chown admin
cvs chacl -a none
cvs chacl -a all -u admin
直接修改D:\CVSNT\repository\CVSROOT\config
SystemAuth=no
增加D:\CVSNT\repository\CVSROOT\admin文件添加一行admin
SET CVSROOT=:pserver:admin@192.168.1.176:/brent
cvs login
cvs passwd -r cvsuser -a wangjianhua
cvs passwd -r cvsuser -a wjh
cvs passwd -r cvsguest -a guest
增加D:\CVSNT\repository\CVSROOT\group文件
administrators:admin
users:wangjianhua wjh
guests:guest
D:\>cvs co CVSROOT
D:\CVSROOT>cvs chacl -a none
D:\CVSROOT>cvs chacl -a all -u administrators
D:\CVSROOT>cvs ci
以上命令修改了D:\CVSNT\repository\CVSROOT\CVS\fileattr.xml
CVSROOT包含了库的配置和用户信息,一般只需要向管理员开放
用wincvs创建一个新库,库名为projecttest
D:\>cvs co projecttest
D:\CVSROOT>cvs chacl -a none
D:\CVSROOT>cvs chacl -a all -u administrators
D:\CVSROOT>cvs chacl -a all -u users
D:\CVSROOT>cvs chacl -a read -u guests
D:\CVSROOT>cvs ci
以上命令配置了用户对projecttest库的权限。