delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/14/14:05:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Sat, 14 Sep 2002 11:17:27 -0700
From: David MacMahon <cygwin AT smartsc DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: mkpasswd takes 18 hours to finish!
Message-ID: <20020914111727.D1610@SmartSC.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020913161956 DOT 0271ee98 AT mail DOT biapo DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.22.1i

On Fri, Sep 13, 2002 at 04:24:50PM -0400, rotaiv wrote:
> At 9/13/2002  02:54 PM, Igor Pechtchanski wrote:
> >It may be that the order of arguments matters, and that the correct way to
> >specify the username and the domain would be
> >        mkpasswd -u MY_USER_ID -d MY_DOMAIN >> /etc/passwd
> >but the point remains the same.
> 
> Once again, correct if you use the second syntax.  For some reason, putting 
> the -d before -u causes to list all users whereas putting -u before -d only 
> lists the single user.  I fail to see why the order of the switches should 
> be import but apparently it is.

I think the confusion comes from the fact that the domain name is an
argument to mkpasswd itself; it is not an argument to the -d option.

I believe the following two invocations are equivalent...

mkpasswd -d -u USER DOMAIN

mkpasswd -u USER -d DOMAIN

This may be counterintuituive, but that's the way it is.  I know,
"Patches graciously accepted..."

Dave

-- 
David MacMahon, President
Smart Software Consulting
http://www.smartsc.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019