On Oct 17 09:02, Maayan Apelboim wrote: > Hi All, > > I posted about this problem in the past but was unable to solve it completely. > It seems getent works intermediately. > 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 don't > feel it as much cause they are less used. The user I'm looking for is the one > responsible for our automations, so every time getent fails to find it, I see > it in my scripts. > > Any idea why this is happening? > > Adding command outputs: > myUser@dom1-job11 ~ > $ getent passwd user1 > > myUser@dom1-job11 ~ > $ getent passwd user1 > > myUser@dom1-job11 ~ > $ > > myUser@dom1-job11 ~ > $ > > myUser@dom1-job11 ~ > $ getent passwd user1 > > myUser@dom1-job11 ~ > $ getent passwd user1 > > myUser@dom1-job11 ~ > $ getent passwd user1 > > myUser@dom1-job11 ~ > $ getent passwd user1 > user1:*:1049703:1049089:U-UK\user1,S-1-5-21-892078619-2706518417-4190201681-1127:/home/user1:/bin/bash > > myUser@dom1-job11 ~ > $ > > myUser@dom1-job11 ~ > $ getent passwd user1 > user1:*:1049703:1049089:U-UK\user1,S-1-5-21-892078619-2706518417-4190201681-1127:/home/user1:/bin/bash > > myUser@dom1-job11 ~ > $ getent passwd user1 > user1:*:1049703:1049089:U-UK\user1,S-1-5-21-892078619-2706518417-4190201681-1127:/home/user1:/bin/bash > > 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 -- Corinna Vinschen Cygwin Maintainer
signature.asc
Description: PGP signature