From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99136 invoked by alias); 18 Oct 2019 10:52:35 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 99126 invoked by uid 89); 18 Oct 2019 10:52:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-101.0 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=H*F:D*cygwin.com, our X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.135) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Oct 2019 10:52:33 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MVaQW-1iVQGQ3ydQ-00RWIq for ; Fri, 18 Oct 2019 12:52:30 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id EF1D8A80733; Fri, 18 Oct 2019 12:52:29 +0200 (CEST) Date: Fri, 18 Oct 2019 10:52:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: getent doesn't work properly Message-ID: <20191018105229.GE16240@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ctP54qlpMx3WjD+/" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-SW-Source: 2019-10/txt/msg00096.txt.bz2 --ctP54qlpMx3WjD+/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1781 On Oct 17 09:02, Maayan Apelboim wrote: > Hi All, >=20 > I posted about this problem in the past but was unable to solve it comple= tely. > It seems getent works intermediately.=20 > Sometimes it shows my user and sometimes it doesn't. > I don't think I have this problem with other users, but maybe I do and do= n't feel it as much cause they are less used. The user I'm looking for is t= he one responsible for our automations, so every time getent fails to find = it, I see it in my scripts. >=20 > Any idea why this is happening? >=20 > Adding command outputs: > myUser@dom1-job11 ~ > $ getent passwd user1 >=20 > myUser@dom1-job11 ~ > $ getent passwd user1 >=20 > myUser@dom1-job11 ~ > $ >=20 > myUser@dom1-job11 ~ > $ >=20 > myUser@dom1-job11 ~ > $ getent passwd user1 >=20 > myUser@dom1-job11 ~ > $ getent passwd user1 >=20 > myUser@dom1-job11 ~ > $ getent passwd user1 >=20 > myUser@dom1-job11 ~ > $ getent passwd user1 > user1:*:1049703:1049089:U-UK\user1,S-1-5-21-892078619-2706518417-41902016= 81-1127:/home/user1:/bin/bash >=20 > myUser@dom1-job11 ~ > $ >=20 > myUser@dom1-job11 ~ > $ getent passwd user1 > user1:*:1049703:1049089:U-UK\user1,S-1-5-21-892078619-2706518417-41902016= 81-1127:/home/user1:/bin/bash >=20 > myUser@dom1-job11 ~ > $ getent passwd user1 > user1:*:1049703:1049089:U-UK\user1,S-1-5-21-892078619-2706518417-41902016= 81-1127:/home/user1:/bin/bash >=20 > myUser@dom1-job11 ~ > $ getent passwd user1 Is "UK" the name of the local machine or the name of your domain? How does your /etc/nsswitch.conf file look like? Do you still have /etc/passwd and /etc/group files? If so, does removing the files change the above behaviour? If so, can you attach both files verbatim to your reply? Thanks, Corinna --=20 Corinna Vinschen Cygwin Maintainer --ctP54qlpMx3WjD+/ Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl2pmW0ACgkQ9TYGna5E T6CDAg//SF1ugq8i8Fd6N9gHx5Yb5YavBI8JImQEvnA5Wrao3BmSCVNcV4M6gnt8 p28uED3mVzpfyoS9vF5gw/2CpnNzJ2LJgxpM/bumbwFQtfL6kADwRGltPMGrlBn7 aa8vgSdIBfQAK2s+Wp7+Itg9Z4nUodQQWFXgZo1/CgudVGgxK6Av8fMGjzpSErOR xv/WvlDgyX5e8qFwyRxwuaNlo5llIkJ9FuGPSMAfAi44xcB7OmLizhAqCgBKrWRf uNCud37SSAgzw21bVgZ8rdN7uCTJdWEr49Dhi0HaCfrLCV0JXYuHhw26jsIJG4Hh O9kCcvWPDM01Jc4H0Xp3wwoNsTuRQSXHT7b0Xm8FRx+h4kG85X2XYbgGWlthHK3v ptEF+2cA2ZFyQSq/m8TB9285/AMascvmjAHlnN9HKYAlIrQFdBeP7LR4I9w90bW2 cSbhg6LqYRRx2NxSvFiM9lo49OV0UmWrOy+bUmBE0cTuy0cQo/bk8yxtJPHlfgU/ dXFIGK+w8BKxwdbdU+38dhJN90TLGxO8tVjg5Gg3MEXqZY4OkvLJD0p/RBwdTPJo GZKQsK1FjzlCwtnB+c7c9/TsT4scT6VV7odg1Jrqoam5caOfoe7LFnnvT1zbDVnd 1z1fB1i4xR76AweCcqoPB4GHfm0t/FcO/SgWt+EIAQOM6tuTPb0= =OCuq -----END PGP SIGNATURE----- --ctP54qlpMx3WjD+/--