Re: LINUX PROS ONLY-UID Question

From: Michael Erskine (osiris@deltaville.net)
Date: 01/31/02


From: osiris@deltaville.net (Michael Erskine)
Date: 31 Jan 2002 14:25:36 -0800

Joel Webb <joel@NOSPAMwebbgroup.net> wrote in message news:<u5j23ah907hh1e@corp.supernews.com>...
> 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 joel@NOSPAMwebbgroup.net

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
name.

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.

-m-