From: Michael Erskine (
Date: 01/31/02

From: (Michael Erskine)
Date: 31 Jan 2002 14:25:36 -0800

Joel Webb <> wrote in message news:<>...
> I am working on a RH7.2 Box. I have deleted some users and recreated them,
> but now when I log in I get a message
> >whoami
> whoami: cannot find username for UID 501
> The message logs says that I am logging in with a UID of 0. Is there a flat
> file that the whoami looks at?? My passwd, shadow, group, and gshadow all
> have me in there correctly. I have also reinstalled the sh-utils RPM that
> the whoami program comes in to make sure that that wasn't the issue.
> Any suggestions?
> Please email me back at

There is no user name for user ID number 501 in the password file.

Totally weird as you should not be able to login at all using that

There are also entries in /etc/shadow which (I suppose) could be
looked at but I don't believe whoami looks at that file as it is not
user readable.