On Mar 24 15:19, Lemke, Michael ST/HZA-ZSW wrote: > On Tuesday, March 24, 2015 3:04 PM Corinna Vinschen wrote: > >On Mar 24 13:28, Steve Johnson wrote: > >> > >> I am having the same issue, but from a fresh install of cygwin64. > >> > > > >The problem is this: I can't reproduce this. I need a means to > >reproduce this to be able to fix it. I'm totally stumped by this weird > >problem because it seems LookupAccountSid fails and I never saw that > >before and don't see this on my machines and in my environment. > > Ok, let's see what I can come up with. Thanks, but I'm even more puzzled than before. > For the test I cut > down passwd to just a single line and removed /etc/group - the problem > still occurs. From a cmd window: > > C:\NCygwin\bin>cat ..\etc\nsswitch.conf > passwd: files > group: files > > C:\NCygwin\bin>getent passwd %USERNAME% > lemkemch:unused:12729:10513:U-INA-DE01\lemkemch,S-1-5-21-1373454394-1654746546-1 > 846952604-2729:/home/lemkemch:/bin/tcsh Is that what you have in /etc/passwd? > C:\NCygwin\bin>id > uid=4294967295(Unknown+User) gid=4294967295(Unknown+Group) groups=545(Users),555 > (Remote Desktop Users) what does `mkpasswd -d | grep -i lemkemch' print? The unknown user is totally weird. It should only occur if your SID doesn't show up in your /etc/passwd file. Also, if /etc/nsswitch.conf is "files" only, and you don't have a group file, there should be only one group in your `id' output, the primary group 10513. Here's how it looks like for me: $ getent passwd corinna corinna:unused:11001:11125:U-VINSCHEN\corinna,S-1-5-21-2913048732-1697188782-3448811101-1001:/home/corinna:/bin/tcsh $ id uid=11001(corinna) gid=11125 groups=11125 Did you stop all cygwin processes after doing all the settings, including any service? > strace output (hopefully) attached. > > Anything else you'd like me try? Can you change /etc/nsswitch.conf to "db" only, stop all cygwin processes and restart a shell? What does `getent passwd %USERNAME%' and `id' print now? How does an strace of this getent call look like? I'm grabbing for straws... Thanks, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat