delorie.com/archives/browse.cgi | search |
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=HHSPwPbCexJZXhEy3BxqUYS+Vpei9iz+4YVXP3u1t8B3zMnPD/G0O | |
5VDvGcfE4ILlAJp+8Li9vnNLXrCmu6bDufes0G1vokXR8DZWEbxG9d07ODoMkTC6 | |
zMFW2Vb5QGnOpd5fuN5eYD+WFsnku0NGuxaw6oh72vxrna0G/iuiVg= | |
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=W4n6jKz3AXH5ujwr91m/Dlc6Tdc=; b=EQVLoL8Du90D4IE/k1DhlHpIutoj | |
tfeAvrwqgeWCNVENqRFqpFuXQLylmQnPd1RFrZKrWMwodhjlHFmzKtsHkw3EcZoG | |
BR7lneylmK61V265VlPKBFrDFXIYcbp6AnQ4AupU1q7tFntVbwjWdnFHtpueJEIP | |
Uba1EtLS4HNE1/8= | |
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-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 |
Date: | Fri, 18 Oct 2019 12:52:29 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: getent doesn't work properly |
Message-ID: | <20191018105229.GE16240@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <AM4PR07MB3473294020CA8F67E79E0217956D0 AT AM4PR07MB3473 DOT eurprd07 DOT prod DOT outlook DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <AM4PR07MB3473294020CA8F67E79E0217956D0@AM4PR07MB3473.eurprd07.prod.outlook.com> |
User-Agent: | Mutt/1.12.1 (2019-06-15) |
--ctP54qlpMx3WjD+/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 AT dom1-job11 ~ > $ getent passwd user1 >=20 > myUser AT dom1-job11 ~ > $ getent passwd user1 >=20 > myUser AT dom1-job11 ~ > $ >=20 > myUser AT dom1-job11 ~ > $ >=20 > myUser AT dom1-job11 ~ > $ getent passwd user1 >=20 > myUser AT dom1-job11 ~ > $ getent passwd user1 >=20 > myUser AT dom1-job11 ~ > $ getent passwd user1 >=20 > myUser AT 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 AT dom1-job11 ~ > $ >=20 > myUser AT 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 AT 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 AT 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" -----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+/--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |