CVSNT权限配置

权限配置:

1.打开CVSNT验证
    [${REPOSITORY}/CVSROOT/config]
    改成:SystemAuth=no

2.增加管理员
    [${REPOSITORY}/CVSROOT/admin]
    格式:用户名+[回车]
    添加:trydofor

3.增加CVS用户
    [${INSTALLDIR}/]
    cvs passwd -r cvs -a guest
    [${REPOSITORY}/CVSROOT/passwd]
    格式:用户名:加密后的登陆密码:系统实际用户+[回车]
    该文件会增加一行记录

4.增加权限
[${REPOSITORY}/CVSROOT/readers]
    [${REPOSITORY}/CVSROOT/writers]
    格式:用户名+[回车]

5.控制${REPOSITORY}/CVSROOT访问
    [${REPOSITORY}/CVSROOT/CVS/fileattr.xml]
   
     <fileattr>
      <directory>
        <acl>
          <create deny="1" />
          <read deny="1" />
          <tag deny="1" />
          <write deny="1" />
        </acl>
        <acl user="trydofor">
          <create />
          <read />
          <tag />
          <write />
        </acl>
        <owner>trydofor</owner>
      </directory>
    </fileattr>


问题与思考:

1.好多文章提到了,cvs chacl default:n 但最新版本中该命令有了变化。
  实际上cvs chacl命令更改的就是CVS/fileattr.xml。

2.修改过程有的修养checkout除来,该好后再checkin回去。
  实际上没那么麻烦,因为都在你本机上,怎么改方便就怎么改。

3.passwd不必非得用cvs passwd -r cvs -a guest添加。
  网上有一个perl脚本,可以代替它生成加密的密码部分。

4.fileattr.xml好像是cvsnt特有的,cvs中有个fileattr,格式不大一样。

5.admin中一定要添加window等前登陆用户,否则
  运行cvs passwd -r cvs -a guest,会报告没有权限。

你可能感兴趣的:(CVSNT权限配置)