delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/13/16:40:03

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
X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: mkpasswd takes 18 hours to finish!
Date: Fri, 13 Sep 2002 16:39:50 -0400
Message-ID: <BADF3C947A1BD54FBA75C70C241B0B9E762F12@ex02.idirect.net>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Harig, Mark A." <maharig AT idirect DOT net>
To: "rotaiv" <rotaiv AT biapo DOT com>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g8DKe2O05062


> -----Original Message-----
> From: rotaiv [mailto:rotaiv AT biapo DOT com]
> Sent: Friday, September 13, 2002 4:25 PM
> To: cygwin AT cygwin DOT com
> Subject: RE: mkpasswd takes 18 hours to finish!
> 
> 
> At 9/13/2002  02:54 PM, Igor Pechtchanski wrote:
> 
> >Yes, but the original poster's problem was that his username 
> was not in
> >the default domain.  Thus, your solution won't work.
> 
> You are correct - missed that point.  Sorry.
> 
> >This is not true.
> >
> >Specifying both the username and the domain name results in 
> extracting
> >just that one user from the domain (as can be plainly seen 
> from the source
> >of mkpasswd.c).
> >
> >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.
> 
> >The last point is true, but, as far as I could see, was not 
> disputed by
> >anyone.
> 
> Only reason I brought this up is because the original poster 
> highlighted 
> the fact it took 18 hours so time was a consideration.  By 
> enumerating all 
> users then using grep, it would still take the same amount of 
> time.  Clearly, if you only want a single user, the '-u -d' 
> combination is 
> the most efficient.
> 
> Regards,
> 
> rotaiv.
> 

Perhaps this could be made plain in the Cygwin-specific
manual page for mkpasswd?  (Clearly, my knowledge of it
was many releases old.)

---

--
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