在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

目录
相关文章
|
JavaScript 前端开发 数据安全/隐私保护
详细介绍NPM的基本使用方法、常用命令和一些实用技巧
详细介绍NPM的基本使用方法、常用命令和一些实用技巧
516 0
|
7月前
|
供应链 前端开发 安全
Temu/拼多多/京东暗战:无头电商API如何改写全球竞争规则?
在流量成本攀升、用户需求碎片化的2025年,传统电商架构面临巨大挑战。本文深入解析无头电商(Headless Commerce)如何通过API重构“前端体验”与“后端能力”的连接方式,探讨其带来的架构革命、技术挑战与未来趋势,揭示API如何成为驱动电商新生态的神经中枢。
|
8月前
|
存储 数据安全/隐私保护 Windows
盘点实用磁盘修复工具,让硬盘恢复如初
电脑使用时间久了,磁盘容易出现逻辑错误或物理损伤,表现为分区打不开、读取异常、传输变慢甚至频繁蓝屏。遇到这些问题,不必立刻送修,可尝试使用专业磁盘修复工具自行排查与修复。本文介绍几款实用工具,如 DiskGenius、CHKDSK 命令、Mac 磁盘工具及硬盘厂商专用软件,帮助你轻松应对各类磁盘故障,让硬盘“重获新生”。修复前请务必备份数据,优先恢复再修复,确保数据安全。
|
数据采集 存储 NoSQL
提高爬虫性能的 5 个关键技巧:从并发到异步执行
本文介绍了提高网络爬虫性能的五个关键技巧:并发请求、异步执行、使用代理IP、限制请求频率与休眠时间、优化数据提取与存储。结合拼多多的实际案例,展示了如何通过这些技术优化爬虫效率,确保数据采集的高效性和稳定性。
978 0
|
SQL 监控 小程序
在微信小程序中使用 Vant 时如何防止 SQL 注入攻击?
在微信小程序中使用 Vant 时如何防止 SQL 注入攻击?
477 58
|
存储 算法 Linux
DNF和Yum
DNF和Yum
928 3
|
安全
【Shiro】2、Shiro实现Session会话过期时间控制
一般我们的 session 会话过期时间默认为 30 分钟,有的用户认为 30 分钟太短了,有时候临时有事出去了,回来已经过期了,工作还没完成就只能登出了,非常不方便,于是要求我们改变 session 的过期时间
1490 0
|
安全 调度 Python
什么是Python中的事件驱动编程?如何使用`asyncio`模块实现异步事件处理?
【2月更文挑战第4天】【2月更文挑战第9篇】什么是Python中的事件驱动编程?如何使用`asyncio`模块实现异步事件处理?
425 0
|
持续交付 jenkins Devops
云效流水线 Flow测评
从入门到实践,多方位带你领略云效Flow的优与劣
1263 8
蓝易云 - 如何在Debian中同步系统时间?Debian系统时间配置(NTP服务)
以上就是在Debian系统中同步系统时间的步骤。通过以上步骤,你可以确保你的系统时间始终与NTP服务器保持同步,从而确保系统时间的准确性。
1055 3

热门文章

最新文章