delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/13/11:17:52

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=TABMP93y/2ilE9/hRRbyReuRcQSWITbXQI6yoJi4NZJUKEXP85o6C
LrDosQongZhZn7DHV5SaScvOan/LLCOzvJ2RCwDn/eQw4p+Kunz4svtJHv+kwQDu
k4rxKb66L77TPpsJ1533KMHXYhVqFeaGCpsjCCd+8DYxjb84JjuS1Y=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=SusWVt0NccM79KTNzDS6b28+xg4=; b=ph92qzO0HKg5SkzoCut1Td56wR+8
zvDPDp7jhsnzgooLnTTL07CB0O+oEjHXIgy4o1PurfG6BiR/21QHIvKGCp5kXfpD
Oa8zb/lK2f5hgXThSlGkf101/VjmXVeIGTQme0BQgD2B+3XxcuslBvO1bDEEfpjN
+46119ed77SDiUM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Thu, 13 Feb 2014 17:17:32 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Testers needed: New passwd/group handling in Cygwin
Message-ID: <20140213161732.GM2246@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20140213143849 DOT GH2246 AT calimero DOT vinschen DOT de> <CAAXzdLVtMzdNDdm9-4puB1jJngjONS=Wbq3TXmDrJKDHcBJ5Ow AT mail DOT gmail DOT com> <20140213160952 DOT GL2246 AT calimero DOT vinschen DOT de>
MIME-Version: 1.0
In-Reply-To: <20140213160952.GL2246@calimero.vinschen.de>
User-Agent: Mutt/1.5.21 (2010-09-15)

--S66JdqtemGhvbcZP
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb 13 17:09, Corinna Vinschen wrote:
> On Feb 13 09:48, Steven Penny wrote:
> > On Thu, Feb 13, 2014 at 8:38 AM, Corinna Vinschen wrote:
> > > For as long as Cygwin has existed, it has stored user and group
> > > information in /etc/passwd and /etc/group files.  Under the assumption
> > > that these files would never be too large, the first process in a
> > > process tree, as well as every execing process within the tree would
> > > parse them into structures in memory.  Thus every Cygwin process would
> > > contain an expanded copy of the full information from /etc/passwd and
> > > /etc/group.
> >=20
> > Stellar writeup! I read the whole post. I am happy to help, but I have =
couple of
> > questions
> >=20
> > - How will this affect "normal" users, that is to say one admin user on=
 one
> >   computer with no domain or networking? Will it be better to use this =
new
> >   system or keep /etc/passwd?
>=20
> That should have been clear from the writeup.  Just continue to use
> /etc/passwd and /etc/group if you're not comfortable to change your
> local SAM.  But my mail also contains examples how to change your SAM
> entry from the CMD or bach command line.
>=20
> > - Do you have any benchmarks available? Or instructions on how we could=
 test the
> >   speed of the new system?
>=20
> Nope.  Try something time-consuming you're doing every day under
> time(1), I guess.  Building some project or so.  But first get
> comfortable with the new output of `id' and `ls -l' in some
> environments.  I'm all for performance, but functionality first, please.

Btw., for completeness, here's a /etc/nsswitch.conf file with comments,
with everything set to the default values.  Again, note that the file is
optional and only needed if you want to diverge from the defaults:

=3D=3D=3D=3D=3D=3D=3D=3D=3D SNIP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
# /etc/nsswitch.conf
#
#    This file is read once by the first process in a Cygwin process tree.
#    To pick up changes, restart all Cygwin processes.
#
# passwd:
# group:
#
#    "files"	only use /etc/passwd or /etc/group file.
#    "db"	only use SAM/AD retrieval.
#    "files db"	both, files preferred.  This is the default.
#
#    "db files"	does not make any sense
#
passwd: files db
group:  files db
#
# Configuration of "db" style passwd/group handling:
#
# db_prefix:
#
#    "auto" 	If "auto", prepend domain to account name if the account
#		is not a member of the machine's primary domain.  Prepend
#		just the separator char if the account is a well-known
#		or builtin group.
#
#    "primary" 	"primary" is like "auto", but prepend domain to account name
#		as well, if the account is a member of the machine's primary
#		domain.
#
#    "always" 	If set to "always", always prepend domain, even for
#		well-known and builtin accounts.
#
db_prefix: auto
#
# db_cache:
#
#    "yes" 	If yes, cache once retrieved DB values in local process,
#		hand cache down to child processes.  This is the default.
#
#    "no"	If no, fetch passwd or group entries anew, every time an
#		entry is requested.
#
db_cache: yes
#
#  db_separator:
#
#		Set separator character between domain and account name to
#		the ASCII char X.  Default is '+'.
#
db_separator: +
=3D=3D=3D=3D=3D=3D=3D=3D=3D SNAP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--S66JdqtemGhvbcZP
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJS/PAcAAoJEPU2Bp2uRE+gUlcP/0WUC8v21sZEjnV18nblk33K
G3U2LvzPiWEBN5GsRVnOlJvF5YRLGRmbFz5EwMtvwQeDC7JGTmF+8ovv0Ujq5mzF
Qht3oxpqi+AoOx+MakW86B03s06godteiQ4tREq1pYvsDtYeW3BqhUVfDUnjWi3e
3EOS8cLBFJzODanD7cv8nMVCR3JoD3Bw4jtNGkbZ4NzDSmqE5MgSf88upbM5Hgb+
SHGxSBBbjVMTnrGvrU9v/EYv5ahTOAUX5ZA1vuPu+tsIl1KqtDmcglfAQKW6TOD9
UD1p/dTOxbTM1UOOX3ti3mw0Z05MQOKChfSJQ/yYiA0ZUVx4j77isRM/EAmRwGuy
WrFvjdgemUDZE3NwUSnAQl4BgNDEi2kQWgrSKxErk34aHAXwZNwW51C0Khkr9sIU
r2LCQ9LqSDxEKbMz+tgLRpkzdtIMFD4658idnAkLr20fZQt2A15PMER0HlHHH4Gq
PURfMsfOqpCMQaoq4KpBV2pMloKbnmabvYv37hq/SVC5jWezdzE2Sl+zkMVqJW/4
UAD/mtU3XXMFPWI1ZVLTNu+qG+8/l9VrquXA6b/AbPhSQFBbm9vvRVX5QIqGBAKf
9koXCArhxZn4B7Gwz9K2GrScsaP0/hLdWHys5JIMa7+z0k7aUQ2yELJM4izMIei9
aWcjUcFsSzQScvQ0kfWK
=xDXx
-----END PGP SIGNATURE-----

--S66JdqtemGhvbcZP--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019