On 11. 5. 2015 23:36, Baruch Burstein wrote:
> On Mon, May 11, 2015 at 11:23 PM, David Macek <[email protected] 
> <mailto:[email protected]>> 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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to