Sunday, May 29, 2011

[CYGWIN] "Sync" passwd with Windows Password

Sometimes if you add a user using window's control panel, they won't automatically get added to the /etc/passwd file in cygwin. This is annoying if you're trying to set up OpenSSH access. To "Sync" them, use mkpasswd. Like so:

mkpasswd -l -u >> /etc/passwd

This is also useful if cygwin is complaining that your password is incorrect, when you know its right. Just be careful to remove the old entry in passwd. Got this info from:

Etienne Mbuyi on Cygwin mailbag. Thanks!
http://cygwin.com/ml/cygwin/2005-07/msg00933.html