| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; q=dns; s= | |
| default; b=btIfCf/7PAiefBfAh0AK0CmUjIlTnvyLsQqd8rCeOY0LhJqFTBtHD | |
| peBuk9KC0f1ZihPPldaXCNqZnMttQh+8hHJuBfYjeHQttuxp1m5hjO5gza3xuqjN | |
| DTvAvTsvakUGijQiUWUGDTGK+QEE4qvYAK+Hml+T8lGLEfCsjMwdaI= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; s=default; | |
| bh=opWeezAOvQeTCVwBAj20Xa7CHJ0=; b=VX/AXGyNhvEdJZMqMTR9hn9xHVYU | |
| 3BeBZesdzCS+UYa4eGoHYs7HkwUQxtpncgscpiWvg4aI9+eeyrX8PuP7vM25codi | |
| YgDW5qELsoUoPZIAZruBTYI9FG5LfjLkeK092qKowxEVs4Rk5Qo+9Fuyzq1md8K6 | |
| brGcW+QltrNGXjY= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-Spam-SWARE-Status: | No, score=-1.8 required=5.0 tests=AWL,BAYES_00,TW_MK autolearn=ham version=3.3.1 |
| Date: | Tue, 14 May 2013 12:19:56 +0200 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Cygwin mkpasswd giving The format of the specified domain name is invalid |
| Message-ID: | <20130514101956.GB23910@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <CAGDPfJosmUDH49uJ=TKx6iLo6pFOJ1ArQ34p6Bd2qr_RYx2NGg AT mail DOT gmail DOT com> <CAGDPfJpf11SjXTAyFUNTM7WpYS5psCaFYWT8d89ZY7HtvmqtEg AT mail DOT gmail DOT com> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <CAGDPfJpf11SjXTAyFUNTM7WpYS5psCaFYWT8d89ZY7HtvmqtEg@mail.gmail.com> |
| User-Agent: | Mutt/1.5.21 (2010-09-15) |
On May 14 11:01, Sorin Sbarnea wrote:
> Hi,
>
> I am unable to make mkpasswd/mkgroup to work on a Windows 2003 R2
> Enterprise x64.
>
> 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
Ouch. mkpasswd always sends the output to stdout. mkpasswd --help
would have shown you:
$ mkpasswd --help | head -14
Usage: mkpasswd [OPTIONS]...
Print /etc/passwd file to stdout
Options:
-l,--local [machine[,offset]]
print local user accounts with uid offset offset
(from local machine if no machine specified)
-L,--Local [machine[,offset]]
ditto, but generate username with machine prefix
-d,--domain [domain[,offset]]
print domain accounts with uid offset offset
(from current domain if no domain specified)
By just specifying /etc/passwd after the -d option, mkpasswd handles it
as domain name and this clearly isn't a domain name. You're missing the
io redirection:
$ mkpasswd -l -u sorins -d > /etc/passwd
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |