Mail Archives: cygwin/2014/02/13/11:17:52
--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 -