delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/09/26/00:13:40

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: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 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-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 DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: nsswitch.conf: files vs. db_enum interaction
To: cygwin AT cygwin DOT com
References: <54111094 DOT 20180925153041 AT yandex DOT ru>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT 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>
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

- Raw text -


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