update trouble 1.7.35

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Mar 24 16:48:00 GMT 2015


On Mar 24 12:22, Steve Johnson wrote:
> Unfortunately, that is one piece of information that I forgot to mention
> after I had removed stripped out the output of the commands. I get no output
> whatsoever from getent. Here is the output of the commands, when I had run
> them this morning:
> 
> C:\cygwin64\bin>getent passwd %USERNAME%
> 
> C:\cygwin64\bin>id
> uid=4294967295(Unknown+User) gid=4294967295(Unknown+Group)
> groups=545(Users),544(Admins),4(A1),66049(A2),11(Auth users),15(This
> org),4095(CurrentSession),66048(LOCAL),1056170(A3),1057070(A4),1051115(A5),1
> 051005(A6),1056095(A7),1056192(A8),1051509(A9),1054768(A10),1057114(A11),104
> 9887(A12),1068445(A13),1051461(A14),1057115(A15),1056098(A16),1068744(A17),1
> 050912(A18),1068708(A19),1052088(A20),1053844(A21),1057175(A22),1053843(A23)
> ,1051713(A24),1054212(A25),1057536(A26),1050984(A28),1054460(A29),1057071(A3
> 0),1055832(A31),1055117(A32),1051006(A33),1057060(A34),1068699(A35),1054464(
> A36),1054462(A37),1054195(A38),1053997(A39),1054461(A40),1051464(A41),105172
> 5(A42),1057094(A43),1049914(A44),1050873(A44),1051719(A45),1055144(A46),1051
> 617(A47),1056091(A48),1055831(A49),1051093(A50),1068698(A51),1050648(A52),10
> 51842(A53),1051159(A54),1051187(A55),405504(A56)
> 
> I ran id again, before writing this reply, and only got the following:
> 
> C:\cygwin64\bin>id
> uid=4294967295(Unknown+User) gid=4294967295(Unknown+Group)

So it create a different output the second time?!?

What does your /etc/nsswitch.conf look like?

If you set /etc/nsswitch.conf to

  passwd: db
  group: db

stop all Cygwin processes, start a shell and call `id' again, what
does it look like?  Can you provide an strace of `id' with this
setting?


Thanks,
Corinna

>   206    8281 [main] getent 4532 transport_layer_pipes::connect: Try to
> connect to named pipe: \\.\pipe\cygwin-e022582115c10879-lpc
>    53    8334 [main] getent 4532 transport_layer_pipes::connect: Error
> opening the pipe (2)
>    46    8380 [main] getent 4532 client_request::make_request: cygserver un-
> available
> 10223   18603 [main] getent 4532 internal_getlogin: user not found in passwd
> DB

This looks strange.  When connecting cygserver fails, Cygwin is supposed
to fall back to reading /etc/passwd (if "files" is given) and if that
fails as well, fall back to "db" (if "db" is given).  And the latter
should produce additional output, which just doesn't show up.  I don't
see why, unless your /etc/nsswitch.conf forbids "db".

This "uid=4294967295(Unknown+User) gid=4294967295(Unknown+Group)"
should only happen if you have /etc/nsswitch.conf is set to "files"
only, and there's no entry in /etc/passwd with a matching SID.
That's the only way I can reproduce this behaviour.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150324/2eed6f95/attachment.sig>


More information about the Cygwin mailing list