whoami: unknown uid 1000

eduardo
Hi,

When I log in via telnet on mini2440 board I'm getting a 'no user' problem.
(Kernel 2.6.32-2).

$ telnet 192.168.1.230
> login: eduardo
> Password: *****
Code:

[@FriendlyARM eduardo]# whoami
whoami: unknown uid 1000

The id command also shows that my user is not correctly configured...
Code:

[@FriendlyARM eduardo]# id
uid=1000 gid=1000(eduardo) groups=1000(eduardo)

my /etc/passwd file is:
Code:

root:$1$YHaEEVEZ$xfpczPKB2HMSfXlL2vRhR0:0:0:root:/:/bin/sh
bin:!*:1:1:bin:/bin:
daemon:!*:2:2:daemon:/sbin:
nobody:!*:99:99:Nobody:/:
sshd:*:30:30:sshd privsep:/var/empty:/sbin/nologin
eduardo:$1$3qCVXcy4$FiFQRDbPnXb4V3wgJ97Wp0:1000:1000:Linux
User,,,:/home/eduardo:/bin/sh


This happens every time that I add a new user on the system.

The group is correctly shown on the last line of /etc/group file:
"eduardo:*:1000:"

User "root" is OK, but the "eduardo" user not.

Is there any other file on the linux system that stores the uid's of the
users?

Titus Breidung
> eduardo:$1$3qCVXcy4$FiFQRDbPnXb4V3wgJ97Wp0:1000:1000:Linux

You have no valid shell as 'eduardo'.

Try something like

eduardo:$1$3qCVXcy4$FiFQRDbPnXb4V3wgJ97Wp0:1000:1000:/bin/sh

eduardo
Hi Titus,

Thanks for your response, but in fact, my shell is "/bin/sh". The problem
is that the line was broken when I posted it on the forum, due a space on
the line:
"eduardo:$1$3qCVXcy4$FiFQRDbPnXb4V3wgJ97Wp0:1000:1000:Linux<space>Use
r,,,:/home/eduardo:/bin/sh"


I discover that this error started occurs after I tried to change the lines
of passwd via my C++ program...
 
On a new image (restored by DNW) this error don't occurs. :/

eduardo
The problem was /etc/passwd file permission.

It must be set to 644.

$ chmod 644 /etc/passwd