1. 在Windows XP上安装CVS服务器端,cvsnt
2. 在命令行窗口中首先登录cvs,命令如下:
cvs -d :pserver:administrator@127.0.0.1:/mycvsworkspace login 注:这里要用自己操作系统的管理员用户代替administrator
3: 添加用户
cvs -d :pserver:administrator@127.0.0.1:/mycvsworkspace passwd -a liss
这样就创建了用户名为liss的账户,此时在cvs的安装目录下会生成一个passwd文件,里边存储着用户名和经过linux加密后的密码。这时候如果用命令cvs -d :pserver:liss@127.0.0.1:/mycvsworkspace login 登录系统,可能会提示liss是无效的用户(在有的机器上这时用户就成功创建不会提示无效用户,后面这条命令也就无需执行,暂且不知道为何不同的机器有这种差异),需要再执行如下命令将该用户与操作系统用户绑定:
4:cvs -d :pserver:administrator@127.0.0.1:/mycvsworkspace passwd -r administrator(操作系统用户名) -a liss
这时passwd文件中的记录变为liss:***(加密的密码): administrator(liss用户的别名)
现在客户端可以用liss用户来share project了。
到 这里又出现了另外一个问题,用liss来share project以后,在服务器所在的机器上可以通过import from CVS repository来导入项目,但是在 其它机器上就提示Connection failed或者connection time out的错误。这是由于服务器端的防火墙的原因,在控制面板->安全中心->例外中,为端口2401,2402关闭防火墙即可。
C:\Documents and Settings\Administrator>cvs -d :pserver:administrator@127.0.0.1:
/thStat login
Logging in to :pserver:administrator@127.0.0.1:2401:/thStat
CVS Password:
C:\Documents and Settings\Administrator>cvs -d :pserver:administrator@127.0.0.1:
/thStat passwd -a liss
Adding user
New Password:
Verify Password:
cvs server: *WARNING* CVS user 'liss' will not be able to log in until they are
aliased to a valid system user.
C:\Documents and Settings\Administrator>cvs -d :pserver:administrator@127.0.0.1:
/thStat passwd -r administrator -a liss
Adding user
New Password:
Verify Password:
C:\Documents and Settings\Administrator>cvs -d :pserver:administrator@127.0.0.1:
/thStat passwd -r administrator -a zengcs
Adding user
New Password:
Verify Password:
C:\Documents and Settings\Administrator>cvs -d :pserver:administrator@127.0.0.1:
/thStat passwd -r administrator -a liub
Adding user
New Password:
Verify Password:
C:\Documents and Settings\Administrator>
参考:
CVS添加用户的过程和命令列表
CVS添加用户的过程
D:\cvs\CVSROOT>set cvsroot=:pserver:administrator@127.0.0.1:/cvs
D:\cvs\CVSROOT>cvs login
Logging in to :pserver:administrator@127.0.0.1:2401:/cvs
CVS Password:
D:\cvs\CVSROOT>cvs passwd -a lrj
Adding user
New Password:
Verify Password:
cvs可供使用的命令
CVS commands are:
add Add a new file/directory to the repository
admin Administration front end for rcs
annotate Show last revision where each line was modified
chacl Change the Access Control List for a directory
checkout Checkout sources for editing
chown Change the owner of a directory
commit Check files into the repository
diff Show differences between revisions
edit Get ready to edit a watched file
editors See who is editing a watched file
export Export sources from CVS, similar to checkout
history Show repository access history
import Import sources into CVS, using vendor branches
init Create a CVS repository if it doesn't exist
info Display information about supported protocols
log Print out history information for files
login Prompt for password for authenticating server
logout Removes entry in .cvspass for remote repository
ls List files in the repository
lsacl List the directories Access Control List
passwd Set the user's password (Admin: Administer users)
authserver Authentication server mode
rannotate Show last revision where each line of module was modified
rdiff Create 'patch' format diffs between releases
release Indicate that a Module is no longer in use
remove Remove an entry from the repository
rename Rename a file or directory
rchacl Change the Access Control List for a directory
rchown Change the owner of a directory
rlsacl List the directories Access Control List
rlog Print out history information for a module
rtag Add a symbolic tag to a module
server Server mode
status Display status information on checked out files
tag Add a symbolic tag to checked out version of files
unedit Undo an edit command
update Bring work tree in sync with repository
version Show current CVS version(s)
watch Set watches
watchers See who is watching a file
xdiff Show differences between revisions using an external diff p
rogram
(Specify the --help option for a list of other help options)
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/zwhfyy/archive/2007/04/21/1573765.aspx
1.CVS添加用户的过程和命令列表
CVS添加用户的过程
D:\cvs\CVSROOT>set cvsroot=:pserver:administrator@127.0.0.1:/cvs
D:\cvs\CVSROOT>cvs login
Logging in to :pserver:administrator@127.0.0.1:2401:/cvs
CVS Password:
D:\cvs\CVSROOT>cvs passwd -a test1
Adding user
New Password:
Verify Password:
为test1用户创建新密码,后在CVSROOT文件夹下生成一个passwd文件,里面放的就是repository用户的登陆信息,包括刚刚注册的用户名test1和加密后的密码。
既然,添加用户成功了。那接下来就用test1登陆试试了。于是,
set cvsroot=:pserver:test1@127.0.0.1:/cvs
cvs login