Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
sorins:unused:1012:513:sorins,U-JIRA\sorins,S-1-5-21-1179867521-3364476509-4149538525-1012:/home/sorins:/bin/bash
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

1 Answer 1

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

 
discard

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.