delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/10/04:57:17

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
Message-ID: <20050610085653.74630.qmail@web25208.mail.ukl.yahoo.com>
Date: Fri, 10 Jun 2005 09:56:53 +0100 (BST)
From: Roy Wiseman <roy_wiseman AT yahoo DOT co DOT uk>
Subject: RE: passwd & group file problems ?
To: cygwin AT cygwin DOT com
In-Reply-To: <Pine.GSO.4.61.0506091610050.23557@slinky.cs.nyu.edu>
MIME-Version: 1.0
X-IsSubscribed: yes

Hi Igor,

>>> Also, as your cygcheck output shows, you are in a
domain.  It's quite possible that the domain
controller really is taking more than 30 minutes to
return the set of users and groups (for large
domains).

Yes, as you say, I can see the output from tee and it
shows that this will take forever (there are 10's of
thousands of users in this domain, and after 15
minutes, it resolved 50 or 60 user, ... so this way
madness lies).

But this raises a question : on a normal install of
cygwin, it does not take 14 days to install cygwin,
but if the setup program is also generating a mkpasswd
-d then it would also take this time. How is setup
doing things differently so that it creates
/etc/passwd and /etc/group in a few seconds instead of
a few weeks ?

>>> mkpasswd -d -l | tee /etc/passwd

net user nlwiso as far as I know doesn't tell anything
about AD group membership etc. but I'm in a lot of
groups, it's a massive corporate network, so the
mkpasswd is slow ...

>>> Perhaps the "local domain" (i.e., the current
computer) isn't handled in the same way.

yep, that is the case in domains.

>>> See <http://cygwin.com/cygwin-ug-net/ntsec.html>.

ok, this is very useful.

>>> The commands you quoted will have destroyed your
/etc/passwd completely. Try re-running the commands I
gave you.

>>> Did you run "mkpasswd -c -l", like I told you?

yep, do you mean -c or -d here ? I've done both, -d is
taking forever to resolve, -c does resolve, but I
still get the same incorrect logon when i do -c with
mkpasswd and mkgroup.

the commands are running, and I see how things should
go I think, but i'm still left wondering, how can
setup.exe do in 1 minute what mkpasswd -d -l >
/etc/passwd is looking to take days or weeks to
complete (there seriously are 10's of thousands of
users on that emea domain so it would take forever at
the speed I was seeing) ?

Regards,

Roy.


		
___________________________________________________________ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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