(原文)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.
分享到:
相关推荐
labview程序代码参考学习使用,希望对你有所帮助。
毕设和企业适用springboot生鲜鲜花类及数据处理平台源码+论文+视频.zip
毕设和企业适用springboot企业数据智能分析平台类及汽车管理平台源码+论文+视频
毕设和企业适用springboot社区物业类及企业创新研发平台源码+论文+视频
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Floating Text Example</title> <style> .floating-text { font-size: 24px; position: relative; animation: float 3s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } } </style> </head> <body> <div class="floating-text">Hello, I'm floating!</div> <script> document.addEventListener('DOMContentLoaded', function() {
毕设和企业适用springboot社交媒体分析平台类及智慧医疗管理平台源码+论文+视频
毕设和企业适用springboot生鲜鲜花类及餐饮管理平台源码+论文+视频
毕设和企业适用springboot人工智能客服系统类及用户行为分析平台源码+论文+视频
毕设和企业适用springboot全渠道电商平台类及个性化广告平台源码+论文+视频
毕设和企业适用springboot社交互动平台类及线上图书馆源码+论文+视频
毕设和企业适用springboot企业知识管理平台类及供应链优化平台源码+论文+视频
毕设和企业适用springboot企业健康管理平台类及数据处理平台源码+论文+视频.zip
内容概要:本文档是一份面向初学者的详细指南,重点介绍如何利用Vue.js 2.0快速创建和运行简单的Todo List应用。首先指导安装必需的Node.js、npm/yarn等环境准备,接着通过Vue CLI工具生成新的Vue项目,再详细介绍项目目录和组件的构建方式。最后提供了具体的方法实现添加和删除待办事项,并指导如何使用命令启动应用,查看结果。 适合人群:具备基础Web开发技能的前端开发新手,尤其是对Vue框架感兴趣的学习者。 使用场景及目标:作为初学者入门级的学习资料,本文档的目标是让读者能够在最短时间内掌握Vue.js的基础概念和技术栈的应用方式,以便日后可以独立地构建更加复杂的Vue应用。 其他说明:除了学习如何构建应用程序之外,本文档还涵盖了Vue的基本语法和数据绑定、事件处理机制等重要概念,对于理解Vue框架的工作原理十分有帮助。
毕设和企业适用springboot企业健康管理平台类及智能化系统源码+论文+视频.zip
毕设和企业适用springboot企业健康管理平台类及远程医疗平台源码+论文+视频.zip
毕设和企业适用springboot数据可视化类及数据智能化平台源码+论文+视频
毕设和企业适用springboot生鲜鲜花类及用户体验优化平台源码+论文+视频.zip
毕设和企业适用springboot人工智能客服系统类及虚拟银行平台源码+论文+视频
毕设和企业适用springboot社交应用平台类及云计算资源管理平台源码+论文+视频
毕设和企业适用springboot企业数据监控平台类及线上图书馆源码+论文+视频