This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: getent doesn't work properly
On 2019-10-28 11:29, Andrey Repin wrote:
>>> You aren't running Cygwin Cygserver and I don't see your nsswitch setup.
>> I have the default nsswitch - This is my configuration:
>> # /etc/nsswitch.conf
>> #
>> # This file is read once by the first process in a Cygwin process tree.
>> # To pick up changes, restart all Cygwin processes. For a description
>> # see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
>> #
>> # Defaults:
>> # passwd: files db
>> # group: files db
>> # db_enum: cache builtin
>> # db_home: /home/%U
>> # db_shell: /bin/bash
>> # db_gecos: <empty>
> That should be sufficient for most use cases.
>> Why do I need cygserver?
> You don't exactly NEED cygserver. But if you have
> 1. Domain (or even multi-domain) environment.
> 2. and/or remote/slow/flaky connection to the domain server.
> cygserver may provide a smoother experience as it caches some information
> related to names resolution.
Running cygserver will also cache info and speed up processing if you run many:
- service daemons under Cygwin, especially cron jobs or ssh sessions
- concurrent processes, especially deeply nested, forked, or background
(some cron jobs background subprocesses *heavily* to reduce run time)
- XSI IPC message queues
- semaphores
- shared memory segments
otherwise that has to be managed by either the process itself or the root parent
process, possibly in parallel threads.
--
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