Site Navigation

Aug 11, 2014

Setup a User Account in Cygwin

Microsoft Logo

I had to set up a new user account on Windows for work today. After trying to run Cygwin on Windows 7 the following error is produced:

“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.”

After much searching and a little fiddling around, here is the solution.

  1. Run Cygwin as Administrator. (Normally just right click the icon to get this as an option on the popup menu.)
  2. Type the following command:

mkpasswd -l -u UserName >> /etc/passwd

Where “UserName” is the name of the Windows account. This assumes that you have already created the new account in Windows 7 Control Panel. It is VERY import that you use ">>" so the data is appended to the file and does not overwrite the file!

That should fix the problem.

Post a Comment

Favorite Links Feed