(原文)http://www.gigascale.org/softdevel/faq/19.html
Christopher Brooks
, 29 Oct 2001
Last updated:
14 Nov 2004
If, under Windows, when you run cvs update
you are
prompted for the Administrator password on the CVS
repository, or you have permission problems writing to
files, then you may need to set up /etc/passwd
on machine to include your name and UID.
Location of /etc/passwd
Note that the actual location of /etc/passwd
varies depending on where you installed Cygwin.
If Cygwin is installed in c:/cygwin
, then
/etc/passwd
will actually end up in
c:/cygwin/etc/passwd
.
mkpasswd
The easiest way to update /etc/passwd
is to run the mkpasswd
command that
is included with the Cygwin toolkit.
Usually, when Cygwin is installed, mkpasswd
is run and /etc/passwd
is automatically
created. If your account was added after Cygwin was
installed, then you may need to run
mkpasswd
by hand.
mkpasswd -help
will print out
the help for mkpasswd.
Below are a few scenarios for updating
/etc/passwd
:
Your machine is in a windows domain
If your Windows machine is a member of a Windows
domain, use this command to add yourself to /etc/passwd:
mkpasswd -d | grep yourlogin
> /etc/passwd
Note that if your domain is rather large, then
mkpasswd -d
could take a minute to complete.
Your machine is not in a Windows domain
To generate /etc/passwd
for all the local
Windows accounts, try:
mkpasswd -l > /etc/passwd
Your home directory
/etc/passwd
also defines where your home
directory is. Usually, Cygwin will set
your initial default home directory to
/home/yourname
, which maps
to c:/cygwin/home/yourname
.
Unfortunately, tools like Java do not know about
the Cygwin directory mapping, so you may want to
reset your home directory to a location outside of
the Cygwin tree.
For example, if your home directory was at
c:/users/yourname
, then Cygwin
would find this as /cygdrive/c/users/yourname
because
Cygwin mounts the c:
drive as
/cygdrive/c
To set up Cygwin so that it finds your home directory,
edit c:/cygwin/etc/passwd
and change
your home directory from /home/yourname
to /cygdrive/c/users/yourname
Set up /etc/passwd
by hand
Stephen Neuendorffer suggests
Edit /etc/passwd and add a new line that contains
your information.
username
::userid
:groupid
:fullName
:home directory
:/bin/sh
Your username and fullname should be obvious.
If you forget these, then CVS probably won't be much use
to you! Your home directory is probably
/home/username
. Your groupid should probably be
the same as the administrator and your userid should be
some unique number that is not used elsewhere in the file
and less than 65535. Adding one to the
largest number in the file will probably work.
Another suggestion for obtaining a userid is to look
at your entry in /etc/passwd
on a Unix machine
and use that number.
mkgroup
There is also a mkgroup
command
that is similar to mkpasswd
.
mkgroup
can be used to create
/etc/group
:
mkgroup -l > /etc/group
Other resources
The CVS Account Name
FAQ covers how
to use a CVS repository with a login that is different
than your current login. Note that even if you configure
your system to properly use a different login on the cvs
server, then you may still have permission problems if
you do not have /etc/passwd
set up
properly.
分享到:
相关推荐
cvs 版本控制 软件项目管理 cvs 版本控制 软件项目管理
cvs import -m "Initial import" my_project <module_name> ``` 这里,`my_project`是你的项目名,`<module_name>`是你为项目定义的模块名,`<vendor_branch>`通常是一个描述项目来源的字符串。 ### 添加和提交...
CVS 服务器程序 CVSNT 2.0.58d + CVS 客户端工具 TortoiseCVS 1.10.10 (for win7)+ 图示说明 最新的版本cvsnt-2.5.03.2382有4.2MB,追新的朋友可以自己上官网下载. 1都安装好软件 2配置服务器端 a 查看运行...
【CVS配置详解】 CVS(Concurrent Versions System)是一种广泛使用的版本控制系统,它允许团队成员协同工作并跟踪代码的变化。在Windows环境下,通常使用CVSNT作为CVS的实现,因为它提供了对Windows系统的良好支持...
**CVS(Concurrent Versions System)**是一种广泛使用的版本控制系统,尤其在开源软件开发中扮演着重要角色。它能够跟踪代码的变化,管理多个开发者协作时的版本冲突,并提供了历史记录和回滚功能,使得团队协作...
3. **拷贝并修改配置文件**:将必要的CVS配置文件(admin、config、group、checkoutlist)拷贝至`cvs_rep/CVSROOT`目录下,并执行添加操作,如`cvs add –m “” admin`等。 4. **登录验证**:通过`cvs login`命令...
**TortoiseCVS:CVS版本控制系统的友好界面** TortoiseCVS是一个专为Windows用户设计的CVS(Concurrent Versions System)版本控制系统客户端工具。CVS是一种开源的、分布式版本控制系统,用于管理软件项目的源代码...
《CVS 1.11.23:版本控制系统的历史与应用详解》 CVS(Concurrent Versions System),中文常称为并发版本系统,是最早流行的一种开源版本控制系统,它的出现为软件开发团队提供了协同工作、代码管理和历史追踪的...
[root@RHEL ~]# useradd -g cvs -M -s /sbin/nologin cvspub ``` 在 CVSROOT 目录下创建 passwd 文件,用于保存 cvs 服务的用户名和密码,以便进行验证。这里的 passwd 文件给系统中的 shadow 文件一样,格式如下: ...
- `cvs ci -m "删除多余文件"` - **注意**: 删除文件后必须提交才能真正从版本库中移除。 ##### 6. cvs st (Status) - **语法**: `cvs st [options] files` - `options`: 可选参数。 - `files`: 要查询状态的...
**TortoiseCVS:CVS的便捷桌面客户端** TortoiseCVS是CVS(Concurrent Versions System)的一个图形用户界面(GUI)工具,它为开发者提供了一种直观且易于使用的界面来管理版本控制。CVS是一个开源的版本控制系统,...
然后使用`cvs passwd -r administrator -a <user>`命令添加用户,其中`administrator`是操作系统的用户名,`<user>`是你希望创建的新用户。 4. 登录和验证:在命令行中,使用`set cvsroot=:pserver:whb@sinotec:/...
2. cvs commit:提交更改,需要提供提交信息,如`cvs commit -m "Add new feature"`。 3. cvs update:同步工作副本与版本库,如`cvs update -d`(包含新建目录)。 4. cvs diff:比较工作副本与版本库的差异,如`...
【Eclipse中CVS使用详解】 CVS,全称为Concurrent Versions System,是一种广泛使用的开源版本控制系统。在软件开发过程中,版本控制对于团队协作至关重要,它可以帮助开发者追踪代码的修改历史,协同工作,并确保...
for /r "C:\path\to\your\project" %%i in (.CVS) do ( if exist "%%i" ( rd /s /q "%%i" echo 删除了!%%i! ) ) echo 批量清空CVS完成。 pause ``` 请将`"C:\path\to\your\project"`替换为你的实际项目路径。这...
【CVS小乌龟工具】是一款专为64位操作系统设计的版本控制系统客户端,它集成了CVS(Concurrent Versions System)的核心功能,并且优化了对64位系统的支持,确保在变态的64位环境下也能高效稳定地运行。TortoiseCVS...
TortoiseCVS是一款在Windows环境下非常流行的CVS(Concurrent Versions System)客户端工具,它提供了与文件资源管理器集成的图形用户界面,使得版本控制操作更为直观和便捷。中文语言包是为TortoiseCVS提供的本地化...
### 使用MyEclipse通过CVS导入项目的操作步骤 在软件开发过程中,版本控制系统(Version Control System,VCS)是必不可少的工具之一,它能够帮助团队有效地管理代码版本、协同工作并追踪修改历史。其中,CVS...
3. 提交更改:在本地修改代码后,使用`cvs commit -m "commit message"`提交更改到版本库。 4. 更新代码:使用`cvs update`命令获取其他开发者提交的最新代码。 四、CVS在MyEclipse中的配置 1. 安装CVS插件:...