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=P1AHFY7klgSYig5P GcGdoVR1tzT6P+6IymGsXf14dAC5EQ/je5VK21ymJHiAnCxDglej5kpQBImlBomU baE+hoimjZI2X7ZWhZ3qHcicN6R8bB+6khqnUEtSPeOFbNosB7Rob/fu4+AMywsS O9BZnzOiOLnsh+VHVXQqR42GDI8= 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=3pgv4+ocKhcdyE4OzTMTVf CvfY0=; b=mzGDXl+KjLELktL1skL0VEpK1pAfpTBCaXMBKGJh9xJQC2GYW8dRPK NNVcOgoL3vI+1NdglrVVKj077DDsXhA/nUunJXu43cVpr9lbt+on3ppjHg3S8oA4 pWyy0u/P6gqIbOrZSse/zQ3DyQ0SvN7WYXy6O25sPv7zPdYAdJADo= 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=1.2 required=5.0 tests=BAYES_20,FREEMAIL_FROM,KAM_THEBAT,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: forward104j.mail.yandex.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1537969802; bh=Izdy72isPaBkwbUP+ivgijvMma8/gJ187mMTBbqtDws=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=n2ghVqld0yTPQxho27LN/FGXYThXU0v6Xhkq2Rzpp68i7v1lnnimTA44mKnH7oku6 JmoSOyPaeTa0zYkxdp4azbFiRYQs8IUwaTbsZEANXL8HjWoJe+Yce1kvxgQF0C7PNw xQy03p2cWuRiTbpEav/qaZR5N6uWEe1W427XNsEc= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1537969801; bh=Izdy72isPaBkwbUP+ivgijvMma8/gJ187mMTBbqtDws=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=vhioSzDJL/THT2bdepRM7EI8taSiBKRldTn90QI2JhXjDtVawtVjGgp8GjahsTvbz 8+kBSjY7Gvef020qzSG12SXOW8A47MgKh1cBk6FXmkwSLl1Ei9caClBn0u81p48zbi Mn57cE1BgM8LOHjlBOHkUHel7LJgubIpzEQFRkOI= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Wed, 26 Sep 2018 16:35:55 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <7722839.20180926163555@yandex.ru> To: Brian Inglis , cygwin AT cygwin DOT com Subject: Re: nsswitch.conf: files vs. db_enum interaction In-Reply-To: <962fbaf6-5b2c-cf17-1a6b-34686cacf9cc@SystematicSw.ab.ca> References: <54111094 DOT 20180925153041 AT yandex DOT ru> <962fbaf6-5b2c-cf17-1a6b-34686cacf9cc AT SystematicSw DOT ab DOT ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, 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. So do they for cached credentials, such as myself. > Did you test with "getent passwd"? I get SYSTEM and NT SERVICE repeated. I only get repeated entries from /etc/{passwd,group}, if I specify "db, files" as source. If I set it to "db" only, then I don't get entries from files at all, even if I explicitly set db_enum to look them up. > I get a comprehensive account list with mkpasswd. I don't. > I have W10 rs4_release/6.3/10.0/17134.286/1803, Cygwin 64 2.11.1, and default > nsswitch. -- With best regards, Andrey Repin Wednesday, September 26, 2018 16:32:33 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