Using an administrator account, I installed cygwin & sshd for all
users on Windows XP. The administrator account is local to the
machine, while my nonadministrator account is a domain power user
account. When I launch a cygwin bash shell as administrator, things
are fine. When I launch it as nonadministrator, I get the message
Your group is currently "mkpasswd". This indicates that
the /etc/passwd (and possibly /etc/group) 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.
Here is what I did to create /etc/passwd and /etc/group.
As administrator, I did
mkpasswd -l >| /etc/passwd
mkgroup -l >| /etc/group
As nonadministrator, I then did
mkpasswd -d | ssh AdminAccount@localhost "cat >> /etc/passwd"
mkgroup -d | ssh AdminAccount@localhost "cat >> /etc/group"
As an indication of proper functionality, I noted that I can
successfully log in using
ssh AdminAccount@localhost
ssh nonAdminAccount@localhost
Is there anything further I can do to avoid the warning message
at the start of this posting? As a possible clue, I noticed that
when I log onto Windows as nonAdministrator and start cygwin bash,
my home diretory ~ is
/c/Documents and Settings/NonAdminAccount
Here, c:\ is mounted as /c. When I ssh into
nonAdminAccount@localhost, however, ~ becomes /home/NonAdminAccount,
which is c:\cygwin\home\NonAdminAccount.