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:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=IgqVBbdgGkTNhGKu xelHxPpjh0gdxvnBZlR8VOmJJU8qcll6FsOdOQXdmd4LTj+tyqL5/IYMMdubSEof wi3mRc9ThpOE1xUH/XBjdo4BNmeUWgQjLJhr8HJ0t4t/eOJ/+L1XPoQ0RaqnDb8a UCtgswd5LbAa15YwoDjdXTTQ4po= 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:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=l0fmdHoJtG4EMkzX3TDwZ5 QTxw4=; b=jolZh4QZ+hlOpEieCrL8jZYwIxqN6OBsykmNr6RSbiMdszOOURNJpL 4PPfAoffD3WuwxSdURC8LWmmOWOCEj+wJtelfbkdQNwMTJ7sC9S7fe/NWUevl5Kc vhnEZtZpYEiPOUN7muC5q8FRmCsD7Tyn3p7vIT9opwFU3pYXY1sO8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=BAYES_00,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Bat!, english, H*F:D*yandex.ru, HX-Priority:Normal X-HELO: forward102p.mail.yandex.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1537970702; bh=NURIPFAPG5BTxVV66O2ZLAz0Ye/NjSi0Xcxy+90OOQs=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=iklVdTTGPFSiGyTG9Fi+mlOrIuDAuS/CQ0z88t1BhvQrbC/ZhpwO3GIMKf+uRAC37 LvRwh9gmypVUAq7OTQ+fD82gafQN4wCSJPd80No7Mn3bnMGObt2KCRcDjnCVofu6Sp QALP9xMruPbxK/R7Q7k4RrH2BBa4wMZ046vT9nMc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1537970701; bh=NURIPFAPG5BTxVV66O2ZLAz0Ye/NjSi0Xcxy+90OOQs=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=wAlVExEd2zGeDlcQBt7zIOjsvADwvo9j/lmHve1Z8BAaB7bN6gwcCNxFlFDEcWMfu /xhFfnbP3/FOctpvXKFeXL0k9jQpXoucBZqaBbq6rBZ/iANPJIcGSSKqDlo9jbrAPX 3TYQklhA7vfPXlZO/ZJstmo80z6cf6El8p32ybwo= Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Wed, 26 Sep 2018 16:54:19 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <782248263.20180926165419@yandex.ru> To: Marco Atzeri , cygwin AT cygwin DOT com Subject: Re: nsswitch.conf: files vs. db_enum interaction In-Reply-To: <3652afba-47f8-df84-1a2e-8c7e44b9b5f2@gmail.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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id w8QE5MS6006987 Greetings, Marco Atzeri! > 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" Did you conigure db_enum in any special way? Or, ok, did you configure db_enum at all? I see that if I don't touch it on my local system, it only list cached and builtin accounts. But if I set "db_enum: all", I get all local SAM accounts as well as a duplicated entry from cache. (No "files" on local system, so…) -- With best regards, Andrey Repin Wednesday, September 26, 2018 16:36:14 Sorry for my terrible english... -- 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