delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/24/12:37:33

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=tMdlhmLAEpszO1BVMs+AugC3yv7budpEtLNru81Eraa6Zx/kJlESC
QokqeNC3RC5GdoGDzBIoOGXosOJ+WiiDyjbQ2YYlCf4Mp7wmChCZw39kf+01SpBo
VQ61yasS8WIJxM/U2NGW5zMNADYiuJ1qgbXUZrWdHAgKAJMgnDSmqQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=jTaIfIBriOkccLnOLf9d7CHXm5U=; b=PNNbRFbwEreFuxXPB6/CPK1MadAS
iq3W03z55pzX9SnDQoafRgU85PVMuseaVMWkGlHvKFsJKM0Z84+v9t6cBOaTL95Q
IEzY+RaJftxTOd8rc6geGQYzFKdN0Pn5p6/YODv32eUPz52IN2WTyNi9XwPWdlvB
GuEiwTo1Jd9xDgE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_50 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 24 Mar 2015 17:37:13 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: update trouble 1.7.35
Message-ID: <20150324163713.GX3017@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CAO-tdqWJD8=bknAtevdC=jVVxpL0zne0suw3v1GZcSHWmQLpBA AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAO-tdqWJD8=bknAtevdC=jVVxpL0zne0suw3v1GZcSHWmQLpBA@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019