From: David M. <dav...@gm...> - 2015-05-11 21:48:45
|
On 11. 5. 2015 23:36, Baruch Burstein wrote: > On Mon, May 11, 2015 at 11:23 PM, David Macek <dav...@gm... <mailto:dav...@gm...>> wrote: > > On 11. 5. 2015 20:08, Baruch Burstein wrote: > > Yes, that helped. Commenting out the "db" in the groups brought the startup time down to a few seconds, and disabling also in the passwd made it practically instant again (like it used to be). However, if I disable "db" aldo for the passwd, my user and group become "Unknown+User" and "Unknown+Group", respectively, and my uid and gid as shown by running "id" are both 4294967295 (as mentioned here: https://github.com/Alexpux/MSYS2-packages/issues/138#issuecomment-74079347) Is there a solution for this? > > We need someone knowledgeable to tackle this problem. > > > "This problem" being the slowness with the "db" option or the "Unknown+User" without it? I meant the slowness. But I just remembered there may be a way to work around the Unknown+User issue. If I understand the problem correctly, you should be able to use /etc/passwd and /etc/group as permanent caches for your user/group name mapping. Switch on "db" in /etc/nsswitch.conf, re-starting Cygwin, calling `mkpasswd -c >> /etc/passwd` and `mkgroup -c >> /etc/group`, and switching "db" off again. I think this should be enough to fix your user/group name, but maybe you'll need to fiddle a bit with the commands. See <https://cygwin.com/cygwin-ug-net/using-utils.html#mkpasswd> and <https://cygwin.com/cygwin-ug-net/using-utils.html#mkgroup> for help for these utilities and <https://cygwin.com/cygwin-ug-net/ntsec.html> if you're interested in more details. -- David Macek |