If you ever get this error it seems your /etc/passwd file doesn't have read permission for "others" section.

chmod o+r /etc /etc/passwd

 

Expected result:

-rw-r--r--  1 root root 2123 Jun 22 01:11 /etc/passwd