public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: rotaiv <rotaiv@biapo.com>
To: cygwin@cygwin.com
Subject: RE: mkpasswd takes 18 hours to finish!
Date: Fri, 13 Sep 2002 13:39:00 -0000	[thread overview]
Message-ID: <5.1.0.14.2.20020913161956.0271ee98@mail.biapo.com> (raw)
In-Reply-To: <Pine.GSO.4.44.0209131436280.19696-100000@slinky.cs.nyu.edu >

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.



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

  parent reply	other threads:[~2002-09-13 20:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-13  8:24 Harig, Mark A.
2002-09-13  8:37 ` Igor Pechtchanski
     [not found] ` <Pine.GSO.4.44.0209131122160.19696-100000@slinky.cs.nyu.edu >
2002-09-13 12:09   ` rotaiv
2002-09-13 12:23     ` Igor Pechtchanski
     [not found]     ` <Pine.GSO.4.44.0209131436280.19696-100000@slinky.cs.nyu.edu >
2002-09-13 13:39       ` rotaiv [this message]
2002-09-14 11:47         ` David MacMahon
  -- strict thread matches above, loose matches on Subject: below --
2002-09-16  2:22 Rick Hellicar (QMP)
2002-09-13 13:49 Harig, Mark A.
2002-09-13  7:17 Rick Hellicar (QMP)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.1.0.14.2.20020913161956.0271ee98@mail.biapo.com \
    --to=rotaiv@biapo.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).