delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/06/12:43:38

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <17B78BDF120BD411B70100500422FC6309E4B7@IIS000>
From: Bernard Dautrevaux <Dautrevaux AT microprocess DOT com>
To: "'Rick Rankin'" <rick_rankin AT yahoo DOT com>,
Bernard Dautrevaux
<Dautrevaux AT microprocess DOT com>,
"'Robert Collins'"
<robert DOT collins AT itdomain DOT com DOT au>,
Stephano Mariani
<sk DOT mail AT btinternet DOT com>, cygwin AT cygwin DOT com
Subject: RE: Suggestion for setup
Date: Wed, 6 Mar 2002 18:31:04 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

> -----Original Message-----
> From: Rick Rankin [mailto:rick_rankin AT yahoo DOT com]
> Sent: Wednesday, March 06, 2002 5:22 PM
> To: Bernard Dautrevaux; 'Robert Collins'; Stephano Mariani;
> cygwin AT cygwin DOT com
> Subject: RE: Suggestion for setup
> 
> 
> 
> --- Bernard Dautrevaux <Dautrevaux AT microprocess DOT com> wrote:
> > > > -----Original Message-----
> > On the same ground, it would be nice if, when creating 
> /etc/passwd and
> > /etc/group, setup.exe pass the "-d" flag to 
> mkpasswd/mkgroup; otherwise,
> > ntsec is almost unusable for the (vast majority of) 
> NT/2k/XP users that
> > happen to be in a Windows domain.
> > 
> > I don't know what happens if "mkpasswd -d" is used on 9x/Me 
> if not in a
> > domain, but this seems harmless on NT/2k/XP, so always 
> passing -d seems
> > harmless in these cases.
> > 
> 
> Depends on how you define "harmless". We have a *huge* 
> domain, and "mkpasswd
> -d" can take a very long time (20 - 30 minutes) to complete, 
> so I definitely
> wouldn't want to run blindly run it with the -d option here. 
> If it were
> implemented, it should be an option, at least.

Oh, I didn't think at that ;-( Obviously a way to avoid running "mkpasswd
-d" in such a case would be useful. 

> 
> When I run mkpasswd here, I generally run it twice, once to 
> get local machine
> accounts, and once with the -d *and* -u options to get a 
> specific user's info
> from the domain. It might be useful with those options. Hmm, 
> maybe I'll take a
> look at that. It would require some fields in the GUI though...
> 

Sure this is the most flexible solution. Another option would be to only get
the password for the profiles we find locally on the system while
installing. 

Of course the right solution would be to avoid the need for /etc/passwd and
/etc/group and automatically serach the NT domain controller, but I'm afraid
this would be a *huge* job to create these files as virtual files that just
talk to the domain controller if any. Plus if one blindly and dumbly just
search through the /etc/passwd file you will get the 20min run time anyway. 

I'm not familiar enough with how programs like "ls" for example maps user
IDs to user names; if there is some "standard" way to search for entries in
/etc/passwd, then these can look directly in the domain controller. OTOH if
they just read the whole password file linearly searching for the mapping,
then we're a bit stuck.

Oh, let me look at the doco: there is routines like "getpwuid()" or
"getpwnam()" that may be implemented to look at the domain controller. Of
course "getpwent()", iterating on the password database, will last for long
but...

Just my .02euros

	Bernard

--------------------------------------------
Bernard Dautrevaux
Microprocess Ingenierie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel:	+33 (0) 1 47 68 80 80
Fax:	+33 (0) 1 47 88 97 85
e-mail:	dautrevaux AT microprocess DOT com
		b DOT dautrevaux AT usa DOT net
-------------------------------------------- 

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