Cygwin初始配置

Cygwin安装完成初次登录时,系统提示用户与组不存在,这多少让人觉得有点不知所措。
 
Your group is currently "mkgroup". This indicates that 
the /etc/group (and possibly /etc/passwd) files should be rebuilt.
See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l [-d] > /etc/passwd
mkgroup -l [-d] > /etc/group
Note that the -d switch is necessary for domain users.
 
不过,也没必要惊慌,按照系统提示一步步操作即可。
需要注意的是,如果用户属于某一域,按照这一提示一次性导入的用户可能会非常多,为安全起见,建议还是做一下过滤,导入自己需要的账户即可。
 
例如:
908869@CNSHA05NB70810 ~
# mkpasswd -l -d | grep ^908869 >> /etc/passwd

908869@CNSHA05NB70810 ~ 
$ mkgroup -l -d | grep 10513 >> /etc/group
 
 
 
 




posted @ 2011-12-28 20:35  __BSD__  阅读(313)  评论(0编辑  收藏  举报