delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/11/11:12:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Mon, 11 Jul 2005 11:12:09 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: FischRon DOT external AT infineon DOT com
cc: cygwin AT cygwin DOT com
Subject: RE: man.conf missing after cygwin upgrade
In-Reply-To: <25F7D2213F14794A8767B88203EA2BC9240CA9@mucse201.eu.infineon.com>
Message-ID: <Pine.GSO.4.61.0507111104040.7597@slinky.cs.nyu.edu>
References: <25F7D2213F14794A8767B88203EA2BC9240CA9 AT mucse201 DOT eu DOT infineon DOT com>
MIME-Version: 1.0

On Mon, 11 Jul 2005, FischRon.external wrote:

> > > I did the variation with "-l -c" to recreate /etc/passwd, because
> > > "-d" would hang the shell.
> >
> > It doesn't hang, just takes very very long in large domains.  What you
> > want is "mkpasswd -d -u YOURUSERNAME >> /etc/passwd".  Though I
> > believe "mkpasswd -c" already does that without the need to query the
> > domain.
>
> Do I really *need* -d? On first setup of Cygwin, the whole Domain wasn't
> searched either.

Well, you *do* need an entry for your domain user.  That's accomplished
with "mkpasswd -d -u YOURUSERNAME" (which will only query the PDC for
YOURUSERNAME, not list all users).  I'm no security expert, but I think
there's enough local information that "mkpasswd -l -c" ("-c" stands for
"current user") works too (it doesn't query the PDC).

> I tried "-d" on mkgroup once (where it goes slightly faster), and it
> ended up with a group file of about 30000 entries!

Yes.  You only need the groups that your domain user belongs to.  Since
I'm not in a domain, I don't know how to get a list of those, but I'm sure
someone here will respond with this info.

Using the "-g" flag to mkgroup will query the PDC for those groups
individually, which is *much* faster.  Omitting the "-g" (or the "-u" for
mkpasswd) will query the domain for all groups (users), which is what I
wrote about below.

> > But don't do that if you have a large domain...  Unless you just want
> > to leave it to complete overnight.
>
> I don't think I want it. I just don't see what advantage it has. And,
> after all, that information is outdated the next day anyway, because
> there are continuously systems coming and going.

Huh?  The domain users/groups live on the PDC, which is one machine.
Unless you mean that users and groups are constantly added and deleted?

But you're right, if you're the only user on the machine, "mkpasswd -d" is
overkill.  "mkpasswd -d -u YOURUSERNAME" isn't.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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