delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/30/17:04:26

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-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Wed, 30 Oct 2002 17:04:11 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Harig, Mark A." <maharig AT idirect DOT net>
cc: Jason Dufair <jase AT dufair DOT org>, <cygwin AT cygwin DOT com>
Subject: RE: sshd install troubles
In-Reply-To: <BADF3C947A1BD54FBA75C70C241B0B9E763009@ex02.idirect.net>
Message-ID: <Pine.GSO.4.44.0210301650050.5605-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Wed, 30 Oct 2002, Harig, Mark A. wrote:

> > I set up the CYGWIN system environment var as "binmode tty
> > ntsec".  I did a
> > mkpasswd -d -u mydomainlogin >> /etc/passwd
>
> For future reference: it has been found that the order
> of mkpasswd's '-d' and '-u' options is significant.
> On some systems/networks, it has been found that
> 'mkpasswd' runs much faster if '-u' precedes '-d'.

No.  The order of the *options* doesn't matter.  The confusion arises from
the fact that the domain name is *not* a parameter of the "-d" command
line option, but a stand-alone argument.  Thus, putting the domain *name*
after the "-d" option, but before the "-u domainuser" option leads to the
"-u" option being ignored, and all users in the domain being listed, which
can be quite time consuming.  If the domain name is given as the last
argument, the order of "-d" and "-u domainuser" doesn't matter, i.e.,
	mkpasswd -d -u mydomainlogin mydomainname
and
	mkpasswd -u mydomainlogin -d mydomainname
should be identical.
Again, if the domain name is specified before the "-u" option, i.e.,
	mkpasswd -d mydomainname -u mydomainlogin
the "-u" option is ignored, and all domain users are listed.

This is counterintuitive, but that's the way mkpasswd and mkgroup work.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


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