Mail Archives: cygwin/2015/03/24/12:37:33
--i7PFf0A+xzvFOD9h
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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 out=
put
> whatsoever from getent. Here is the output of the commands, when I had run
> them this morning:
>=20
> C:\cygwin64\bin>getent passwd %USERNAME%
>=20
> C:\cygwin64\bin>id
> uid=3D4294967295(Unknown+User) gid=3D4294967295(Unknown+Group)
> groups=3D545(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(A=
23)
> ,1051713(A24),1054212(A25),1057536(A26),1050984(A28),1054460(A29),1057071=
(A3
> 0),1055832(A31),1055117(A32),1051006(A33),1057060(A34),1068699(A35),10544=
64(
> A36),1054462(A37),1054195(A38),1053997(A39),1054461(A40),1051464(A41),105=
172
> 5(A42),1057094(A43),1049914(A44),1050873(A44),1051719(A45),1055144(A46),1=
051
> 617(A47),1056091(A48),1055831(A49),1051093(A50),1068698(A51),1050648(A52)=
,10
> 51842(A53),1051159(A54),1051187(A55),405504(A56)
>=20
> I ran id again, before writing this reply, and only got the following:
>=20
> C:\cygwin64\bin>id
> uid=3D4294967295(Unknown+User) gid=3D4294967295(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 pas=
swd
> 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=3D4294967295(Unknown+User) gid=3D4294967295(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
--=20
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--i7PFf0A+xzvFOD9h
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBAgAGBQJVEZK5AAoJEPU2Bp2uRE+g3D4QAJ0Gle8mYc4eyAkn4VjvBlc7
SQstDHYbdc3k2QKCdUuTSYOie+CZhIre0SgTDWKeIibgKDP0C0cc7B/FQzHFgL2L
QTNEstzc/ti+56HTTj1bkA8iZDF5QNykVT71gqWAe6tOnBCcfDB7KNJLMMze/MJq
n0CMHv08fgVShbYqO0g8Dg1kJmiSCw5INuAVnspgNAhjigMgZhmZsrltiuIZNsxL
Mfy9Rm2EbRlVpGLYkzfkUL3u+mxSxL6mF9yrgdLu7fEOl/6tnX7n+YjgQp7DtkbR
1sApBy/i23Lk2wNbNWJqjE9deH2oehwPTQe/cwDjsckg+WWN5diU6HuW9Hj/WlLE
lFCrdVpOBjUhm0BfAnmbU57RoONe2P1dJcLDdP6XGkKVIVVglRJRHbjM3vFpEpXP
r0Twrb58fbAZhpF3IqB6SQD5PGw8oTnRx6d8qpuyhJf3MV6CAmK0vFqxh9baiZO3
KC3mv8fHiUu35AUg1iGKsqzLLPwJ+3gs+JCBW4AQCftVEUwyd8vggokgmbjbCeJb
1u0sMtFbZjIXQ9mw//j8NyzROyiRhohHGPkGV+Nh+7Wo6Wnxbph+BiMv7HgXN7nJ
TPPeowr9brdKiVvabpqydgJUADsyaPz6zI15PVdS7OIS+Lb8PVaYI0/x1EHyBrQ5
tM9Zg5uVDWBxjttqUSI/
=LSw0
-----END PGP SIGNATURE-----
--i7PFf0A+xzvFOD9h--
- Raw text -