X-Recipient: archive-cygwin@delorie.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:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=bd+wvaXRpj7/72Jl
	filo5/wxsTV95zzG/y4zUWMuTlQffQs6TgXCVCkzYgJEX2is/bdFo6UnK/gqYjKO
	ijzhnuI9bVDkkuTA9fXlKTWEBGijcl/f4JiMaH/txbNkxisAyXtzUIsNTCrItYcc
	gV6jImxCldwihoRbxtu/eQ9vHvk=
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:reply-to:subject:to:references:from:message-id
	:date:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=TxCDUGQns1KdOPl75sAF4l
	70n6U=; b=exY/Zb/dU3T689bVdId3wsX+P8DEOaXRHkLlkRFX8vrk9RIUNU/uBm
	GSBa787X0c+P609TGSU0h7miY8CzWA7APArtmooWTcder1BSuoT7LMg6uqr+hxzp
	lno8C/rjllMxGPBxmmd8OzsS4UuV/P1d17cS4sYsxADC2WNvRCshg=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=SERVICE, comprehensive, canada, Canada
X-HELO: smtp-out-no.shaw.ca
Reply-To: Brian.Inglis@SystematicSw.ab.ca
Subject: Re: nsswitch.conf: files vs. db_enum interaction
To: cygwin@cygwin.com
References: <54111094.20180925153041@yandex.ru>
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Openpgp: preference=signencrypt
Message-ID: <962fbaf6-5b2c-cf17-1a6b-34686cacf9cc@SystematicSw.ab.ca>
Date: Tue, 25 Sep 2018 22:13:22 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <54111094.20180925153041@yandex.ru>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 2018-09-25 06:30, Andrey Repin wrote:
> I just noticed something that I think is an oddity. Or a possible improvement.
> If you set your nsswitch.conf to, say;
> passwd: db
> db_enum: cache builtin local files
> The accounts listed in /etc/passwd aren't looked up.
> I understand that it's a documented behavior, but it looks... odd to me.

From the UG they should be looked up and may appear more than once if you
specify say "files" in an entry and also a db_... entry.
Did you test with "getent passwd"? I get SYSTEM and NT SERVICE repeated.
I get a comprehensive account list with mkpasswd.
I have W10 rs4_release/6.3/10.0/17134.286/1803, Cygwin 64 2.11.1, and default
nsswitch.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

