delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/09/26/11:09:33

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:from:subject:reply-to:to:references:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=rRWmsJF+K/y5CRfs
EEHkegwmcJiSunjt1NtYvv3nDoaQTP1vE/B9+CEFvsDrJXLQcor/ZiroCN6ggiyU
Mju6U4z5+fMCiwKmCb5Cnfkbm8VIvdm+VO9yxfmd4kiN4Vn8b3XA1SsX6JddQ7Bt
sfJTaq2kGf9chET2ME91w/1fOt4=
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:from:subject:reply-to:to:references:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=z+2vDoDP79vwb30f691ePP
gm9Ag=; b=KU/Ec7zI5KQ8xLc4lSjj0Ta/OACYbdguAF48TwYdmMmaNjBDskYnTX
G3Qn2iyMUESCELvOgGE9tIpOjwy5Gct3bT/GZVaamOWKKYih63d1sTlakrblzk0V
BCZ6chwPiRhFDe2hqC2Akp7q/3+5706gtLLCGWfCg6GehOVbaIfxI=
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=-1.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=canada, Canada, discretion, disturbing
X-HELO: smtp-out-no.shaw.ca
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Subject: nsswitch.conf: db/db_enum default excludes local
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
To: cygwin AT cygwin DOT com
References: <54111094 DOT 20180925153041 AT yandex DOT ru> <962fbaf6-5b2c-cf17-1a6b-34686cacf9cc AT SystematicSw DOT ab DOT ca> <3652afba-47f8-df84-1a2e-8c7e44b9b5f2 AT gmail DOT com>
Openpgp: preference=signencrypt
Message-ID: <ef032886-bacd-d912-133c-949a3ddceac1@SystematicSw.ab.ca>
Date: Wed, 26 Sep 2018 09:09:17 -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: <3652afba-47f8-df84-1a2e-8c7e44b9b5f2@gmail.com>
X-IsSubscribed: yes

On 2018-09-26 01:45, Marco Atzeri wrote:
> Am 26.09.2018 um 06:13 schrieb Brian Inglis:
>> 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.
> 
> on W10 Home I see only double SYSTEM on both "getent passwd" and
> "getent group"
> 
> However "getent passwd" is not reporting local user, cyg_server, sshd,
> guest that instead are reported by "mkpasswd"
UG says default db/db_enum is cache builtin excluding local.
This does not seem consistent with default using SAM instead of files which
should include local.

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