Why does login prompt fails to fetch user attributes and shows "I have no name!" at login prompt?

Solution Verified - Updated -

Issue

  • Received below error while login, by user that is not able to find the user id and group id.
[root@localhost ~]# ssh test@localhost
test@localhost's password:
id: cannot find name for user ID 1004
id: cannot find name for group ID 1004
id: cannot find name for user ID 1004
[I have no name!@localhost ~]$
  • User information such as uid, username and gid is not returned by the system.

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content