在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

目录
相关文章
|
机器学习/深度学习 人工智能 自然语言处理
四张图片道清AI大模型的发展史(1943-2023)
现在最火的莫过于GPT了,也就是大规模语言模型(LLM)。“LLM” 是 “Large Language Model”(大语言模型)的简称,通常用来指代具有巨大规模参数和复杂架构的自然语言处理模型,例如像 GPT-3(Generative Pre-trained Transformer 3)这样的模型。这些模型在处理文本和语言任务方面表现出色,但其庞大的参数量和计算需求使得它们被称为大模型。当然也有一些自动生成图片的模型,但是影响力就不如GPT这么大了。
6270 0
|
XML easyexcel Java
EasyExcel实现对excel文件读写
EasyExcel是阿里巴巴开源的一个excel处理框架,**以使用简单、节省内存著称**。EasyExcel能大大减少占用内存的主要原因是在解析Excel时没有将文件数据一次性全部加载到内存中,而是从磁盘上一行行读取数据,逐个解析。
2584 1
EasyExcel实现对excel文件读写
|
供应链 前端开发 安全
Temu/拼多多/京东暗战:无头电商API如何改写全球竞争规则?
在流量成本攀升、用户需求碎片化的2025年,传统电商架构面临巨大挑战。本文深入解析无头电商(Headless Commerce)如何通过API重构“前端体验”与“后端能力”的连接方式,探讨其带来的架构革命、技术挑战与未来趋势,揭示API如何成为驱动电商新生态的神经中枢。
|
存储 数据安全/隐私保护 Windows
盘点实用磁盘修复工具,让硬盘恢复如初
电脑使用时间久了,磁盘容易出现逻辑错误或物理损伤,表现为分区打不开、读取异常、传输变慢甚至频繁蓝屏。遇到这些问题,不必立刻送修,可尝试使用专业磁盘修复工具自行排查与修复。本文介绍几款实用工具,如 DiskGenius、CHKDSK 命令、Mac 磁盘工具及硬盘厂商专用软件,帮助你轻松应对各类磁盘故障,让硬盘“重获新生”。修复前请务必备份数据,优先恢复再修复,确保数据安全。
|
人工智能 关系型数据库 BI
算术逻辑单元ALU
算术逻辑单元ALU
4193 0
|
安全
【Shiro】2、Shiro实现Session会话过期时间控制
一般我们的 session 会话过期时间默认为 30 分钟,有的用户认为 30 分钟太短了,有时候临时有事出去了,回来已经过期了,工作还没完成就只能登出了,非常不方便,于是要求我们改变 session 的过期时间
1636 0
|
存储 监控 算法
基于YOLOv5和树莓派4B平台
目标检测在计算机视觉领域中具有重要意义。YOLOv5(You Only Look One-level)是目标检测算法中的一种代表性方法,以其高效性和准确性备受关注,并且在各种目标检测任务中都表现出卓越的性能。本文将详细介绍如何在性能更强的计算机上训练YOLOv5模型,并将训练好的模型部署到树莓派4B上,通过树莓派的摄像头进行实时动物目标检测。 一、在电脑上训练YOLOv5模型 1. 安装Anaconda 在性能更强的计算机上安装Anaconda,方便管理Python环境和依赖。 从Anaconda官网(https://www.anaconda.com/products/distribu
1305 6
|
存储 算法 Linux
DNF和Yum
DNF和Yum
1315 3
|
jenkins Java Shell
解决jenkins结束后kill掉衍生进程
解决jenkins结束后kill掉衍生进程
1138 4
蓝易云 - 如何在Debian中同步系统时间?Debian系统时间配置(NTP服务)
以上就是在Debian系统中同步系统时间的步骤。通过以上步骤,你可以确保你的系统时间始终与NTP服务器保持同步,从而确保系统时间的准确性。
1300 3