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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In