nsswitch.conf: files vs. db_enum interaction

Andrey Repin anrdaemon@yandex.ru
Wed Sep 26 13:50:00 GMT 2018


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



More information about the Cygwin mailing list