Occasionally I work in a Windows domain with thousands of users.
I don't want to do any best-guess approach. I would prefer Cygwin to cache user information on an as-needed basis. It turns out this is easy to do.
cygserver on login.
To set this up properly, run
cygserver-config once only. This will set up
cygserver to run as a Windows service with the correct credentials.
Do this from an administrator Cygwin window.
Generating /etc/cygserver.conf file
Warning: The following function requires administrator privileges!
Do you want to install cygserver as service?
(Say "no" if it's already installed as service) (yes/no) yes
The service has been installed under LocalSystem account.
To start it, call `net start cygserver' or `cygrunsrv -S cygserver'.
Further configuration options are available by editing the configuration
file /etc/cygserver.conf. Please read the inline information in that
file carefully. The best option for the start is to just leave it alone.
Basic Cygserver configuration finished. Have fun!
cygserver do for me?
Have a look at the documentation over at the Cygwin site. Basically it does the user caching stuff, together with ensuring IPC works between all Cygwin processes.
Your mileage may vary of course, but this is now my preferred way of working. I should have done it years ago.