注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

骇客归来

ぁ枫あ

 
 
 

日志

 
 

How to add CVS users.  

2007-09-27 14:20:13|  分类: cvs |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
  • Login in Windows XP as a user with administrator rights, e.g.: Mainuser
  • The CVS users will be added on the host where the CVS repository is setup.

    First setup your cvsroot:

    set CVSROOT=:<protocol>:<hostname>:<repository>

    For example:

    set CVSROOT=:pserver:TARGA:/CVSRepository

    ATTENTION:

    If the CVSNT's Repository prefix feature is not used, for example the CVS location name is set to C:/CVSRepository, then you must use:

    set CVSROOT=:pserver:TARGA:C:/CVSRepository

    CVSNT 2.0.51:

    How to add CVS users. - haiker - 骇客归来

    CVSNT 2.5.03:

    How to add CVS users. - haiker - 骇客归来

  • Create files passwd, admin, CVSADMROOT_WRITERS and CVSADMROOT_READERS:

    • Create passwd file: mkdir c:\CVSRepository\CVSROOT\passwd

    • In this passwd file you MUST add the current logged in real windows user account name with administrator rights, e.g.: Mainuser

      Note: Make sure there is NO empty line!

      How to add CVS users. - haiker - 骇客归来

    • Create admin file: mkdir c:\CVSRepository\CVSROOT\admin

    • In this admin file add the same windows user login name as in the passwd file, e.g.: Mainuser

      Note 1: Make sure there is NO empty line!

      Note 2: This file determines who has administrator rights to the reprository.

      Only administrators can add or change another 's password.

    • Create writers file: mkdir c:\CVSRepository\CVSROOT\CVSADMROOT_WRITERS

    • In this writers file add the same windows user login name as in the passwd file, e.g.: Mainuser

      Note 1: Make sure there is NO empty line!

      Note 2: This file determines who has write access to the repository.

    • Create an empty readers file: mkdir c:\CVSRepository\CVSROOT\CVSADMROOT_READERS

      Note 1: Do not enter Mainuser in this file otherwise Mainuser will not have write access.

      Note 2: This file determines who has ONLY read access to the repository.

  • Update file config:

    • Create a scratch directory: mkdir c:\scratch

    • cd c:\scratch

    • Checkout directory CVSROOT: cvs co CVSROOT

    • Edit file: c:\temp\CVSROOT\config

    • Add the following line: SystemAuth=no

      Note: This means that the created passwd file will be used.

    • Check in the file: cvs ci CVSROOT

    • Remove the scratch directory: del c:\scratch

  • Set the user password:

    cvs passwd -a <windows_real_user>

    For example: cvs passwd -a Mainuser

    You should see the following:

    Adding user Mainuser@localhost

    New password: mysecret

    Verify password: mysecret

    Note 1: Do not use the windows password choose another! The password can be easily hacked.

    Note 2: The password has been added in file c:\CVSRepository\CVSROOT\passwd.

  • Now you can add as many CVS users as you want:

    cvs passwd -r <windows_real_user> -a <cvs_username>

    For example:

    cvs passwd -r Mainuser -a jjones (enter password on prompt)

    cvs passwd -r Mainuser -a ksmith (enter password on prompt)

  • You can determine what kind of access the users can have on this repository:

    • Write access, which means the user can modify the CVS repository.

      To grant a user write access, add the username in the c:\CVSRepository\CVSROOT\writers file.

      For eample: jjones Note: Make sure there is NO empty line!

      You might have noticed that we already have put is Mainuser in this file. If you have not done this you were not able to change the CVS repository!

    • Read-only access, which means the user cannot modify the CVS repository.

      To grant a user read-only access, add the username in the c:\CVSRepository\CVSROOT\readers file.

      For eample: ksmith

      Note: Make sure there is NO empty line!

  • For security reasons, do not import the files: passwd, admin, readers and writers into the CVS repository.

  • If you want to know how the users (jjones and ksmith) can remotely access the CVS repository, see quick guide "How to access a remote CVS repository."

  •   评论这张
     
    阅读(414)| 评论(0)
    推荐 转载

    历史上的今天

    评论

    <#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
     
     
     
     
     
     
     
     
     
     
     
     
     
     

    页脚

    网易公司版权所有 ©1997-2018