在cvs中添加用户命令

简介: 1. 在Windows XP上安装CVS服务器端,cvsnt 2. 在命令行窗口中首先登录cvs,命令如下: cvs -d :pserver:administrator@127.0.0.1:/mycvsworkspace login 注:这里要用自己操作系统的管理员用户代替administrator 3: 添加用户 cvs -d :pserver:administrator@127

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

目录
相关文章
|
3月前
|
开发工具 数据安全/隐私保护 git
Git切换本地用户名,IDEA集成Git如何切换本地用户名
Git切换本地用户名,IDEA集成Git如何切换本地用户名
75 3
|
11月前
|
运维 Linux 数据安全/隐私保护
linux配置SVN,添加用户,配置用户组的各个权限教程
linux配置SVN,添加用户,配置用户组的各个权限教程
|
Linux 开发工具 git
linux git修改用户名和邮箱
linux git修改用户名和邮箱
linux git修改用户名和邮箱
|
Linux
【SVN】在linux下查看svn的账号密码
【SVN】在linux下查看svn的账号密码
332 1
【SVN】在linux下查看svn的账号密码
|
Linux Apache 数据安全/隐私保护
|
PHP 调度 开发工具
svn 命令行使用总结
SVN的全程是subversion,SVN版本控制软件可以解决 协助开发 、远程开发 和 版本回退 三个问题。 SVN是输入C/S服务类软件,有客户端和服务端。
237 0
|
开发工具 数据安全/隐私保护 git
CenOs配置git免密码输入
首先进入用户目录 cd ~/ 查看用户目录隐藏文件 ls -a 新建git配置文件 vim .git-credentials 输入 https://{username}:{password}@github.
1153 0
|
Apache 数据安全/隐私保护