關於cygwin出現用戶問題

Win跟換了用戶登陸使用cywin報告如下錯誤:

cygwin提示自己所在的組變成了”mkpaswd”, 這說明/etc/passwd或者/etc/group需要重建了。

Your group is currently "mkgroup".  This indicates that neither
your gid nor your pgsid (primary group associated with your SID)
is in /etc/group.

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.


原因是新的登陸用戶信息不在/etc/passwd和/etc/group中導致的:

運行mkpasswd -l >/etc/passwd; mkgroup -l >/etc/group即可修復。



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章