Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While trying to finish Cygwin config and running mkpasswd -l -d and mkgroup, it fails with the following error

$ mkpasswd -l -u sorins -d /etc/passwd
mkpasswd (87): [1212] The format of the specified domain name is invalid.

I tried even this option:

$ mkpasswd -l /etc/passwd
mkpasswd (374): [123] The filename, directory name, or volume label syntax is in                                                               correct.
  • JIRA is the computer name and sorins is a Local Administrator
  • This machine is part of domain
share|improve this question
up vote 0 down vote accepted

I think you want

mkpasswd -l -u sorins -d > /etc/passwd

i.e. redirect output to /etc/passwd

share|improve this answer
In fact the solution was to run only with mkpasswd -l > /etc/passwd - even if this is on a domain but the user was on local computer. – sorin May 14 '13 at 18:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.