cannot find username for UID 500
I am using CentOS 4.8 I was doing some updates. Now I get "cannot find username for UID 500" here are some outputs,
repeater@irlp's password:
Last login: Sat Apr 2 09:16:27 2011 from 192.168.0.151
-bash: /etc/profile: Permission denied
-bash-3.00$
-bash-3.00$ whoami: cannot find username for UID 500
and should be,
repeater@irlp4745 etc]#
[root@irlp4745 etc]# getent passwd repeater
repeater:x:500:500::/home/irlp:/bin/bash
[root@irlp4745 etc]# getent group 500
repeater:x:500:repeater
Root is Ok.
Seems somehow the name is no longer linked with UID. I searched the web and didn't find any thing specific, I am at a loss.
Solved;
other than user, group chmod was set wrong to /etc and also do a usermod -s to repeater. and set the login repeater to /home/irlp. TNX for the help!
Last edited by linuxdistroyer; 04-04-2011 at 11:14 AM.
Reason: Solved
|