LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 01-30-2013, 01:34 PM   #1
Lobinho
Member
 
Registered: May 2010
Distribution: Ubuntu
Posts: 72

Rep: Reputation: 18
whoami: unknown uid 1000


Hi,

When I log in my telnet server (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?
 
Old 01-30-2013, 03:50 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
What are the permissions on /etc/passwd ? They should be 644.
 
1 members found this post helpful.
Old 01-31-2013, 04:25 AM   #3
Lobinho
Member
 
Registered: May 2010
Distribution: Ubuntu
Posts: 72

Original Poster
Rep: Reputation: 18
I can't believe I missed that.
I thought that the problem was the permission, then, I set the permission 777, but that didn't solve.

But with 644 it's fine. Thanks AlucardZero!


More info about /etc/passwd file could be find here: http://www.cyberciti.biz/faq/underst...d-file-format/


Is there any explanation about why telnet the system doesn't read the user id when the permission is wrong (777 for example)?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 14: "Adding read ACL for uid 1000, operation not permitted." (CONFIG_TMPFS_POSIX_ACL) urza Slackware 3 10-01-2012 08:49 AM
[SOLVED] Perl: Find highest UID between 1000 and 2000 Angel2953 Programming 8 03-04-2012 09:00 AM
Changing the UID of a Physical Volume to a specific UID jambraun Linux - Newbie 2 02-09-2006 02:34 PM
FREEBSD5.3 platform: PHP setcookie() successful, but $uid = $_COOKIE['uid']; fail tclwp Programming 1 03-30-2005 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration