LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-18-2003, 06:54 PM   #1
fernin8r
LQ Newbie
 
Registered: Jan 2003
Posts: 27

Rep: Reputation: 15
cannot find user ID 500


Has anyone seen this when they open their terminal?

id: cannot find name for user ID 500
[I have no name!@ localhost ...]$

i don't understand why i get this. I hope it's not a big problem...i've tried to recreate the user, but it didn't work.

thanks for any help

Mike
 
Old 02-18-2003, 07:33 PM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
The unix user ids are usually looked up in /etc/passwd. Do you have this file?
 
Old 02-19-2003, 01:28 AM   #3
fernin8r
LQ Newbie
 
Registered: Jan 2003
Posts: 27

Original Poster
Rep: Reputation: 15
yes...i have that file
 
Old 02-19-2003, 01:46 AM   #4
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
If you recreated the user, it probably was assigned a new id. You are going to have to hack your /etc/passwd & /etc/group files back into shape.

Some more detail would help. I'm curious how you logged in as that user if it is not being found. Did you remove the user while logged in as that user? (i.e. su to root from user, then remove user).
 
Old 02-19-2003, 01:59 AM   #5
fernin8r
LQ Newbie
 
Registered: Jan 2003
Posts: 27

Original Poster
Rep: Reputation: 15
okay...i've removed the user while under root. then i went back an created the user using the same name.

i'm in the /etc/passwd file as:

fernin8r:x:500:500:NAME:/home/fernin8r:/bin/bash

it looks correct....am i missing something?
 
Old 02-19-2003, 02:45 AM   #6
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
fernin8r:x:500:500:NAME:/home/fernin8r:/bin/bash

what username are u using? is it fernin8r? do u experience the same prob with other users?

try this:

usermod -u 500 -g 500 fernin8r

u need to be logged in as root to do this.
 
Old 02-19-2003, 03:34 AM   #7
fernin8r
LQ Newbie
 
Registered: Jan 2003
Posts: 27

Original Poster
Rep: Reputation: 15
my groupname and username are the same: fernin8r

i'll try that. thanks
 
Old 02-19-2003, 10:52 AM   #8
fernin8r
LQ Newbie
 
Registered: Jan 2003
Posts: 27

Original Poster
Rep: Reputation: 15
well....i put

usermod -u 500 -g 500 fernin8r

in my /etc/passwd file, but it didn't do anything
i also typed it in the command line of the terminal. I'm lost. The terminal still works fine, it just can't find the userID. Is this a problem?
 
Old 02-19-2003, 06:37 PM   #9
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
very weird indeed.

How about this.. ? Can we create a brand new user using the useradd command and see if you can login as this user?
 
Old 02-19-2003, 09:05 PM   #10
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
Quote:
Originally posted by fernin8r
well....i put

usermod -u 500 -g 500 fernin8r

in my /etc/passwd file, but it didn't do anything
i also typed it in the command line of the terminal. I'm lost. The terminal still works fine, it just can't find the userID. Is this a problem?
try this:

cd /home

ls -l

and check the uid/gid of your directory or post it here if u want.
 
Old 02-20-2003, 03:31 PM   #11
fernin8r
LQ Newbie
 
Registered: Jan 2003
Posts: 27

Original Poster
Rep: Reputation: 15
here's what it shows:

drwx------ 38 fernin8r fernin8r 4096 Feb 19 10:48 fernin8r
drwx------ 11 Nikatia users 4096 Feb 19 02:04 Nikatia

fernin8r and Nikatia are both users. both of them get the "cannont find userid 500" thing. thanks
 
Old 02-21-2003, 07:38 AM   #12
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
Quote:
Originally posted by fernin8r
well....i put

usermod -u 500 -g 500 fernin8r

in my /etc/passwd file, but it didn't do anything
I hope you removed this line from your passwd file.

You should never type things like this directly into your passwd file. That was a command line to be issued in a terminal.

Only experienced users should be editing their passwd file by hand, and even then a utility like vipw is better than nothing.
 
Old 02-21-2003, 09:14 AM   #13
fernin8r
LQ Newbie
 
Registered: Jan 2003
Posts: 27

Original Poster
Rep: Reputation: 15
jdc

yeah...i removed that line. Do you have any ideas though? what is vipw?

thanks,
mike
 
Old 02-23-2003, 06:29 PM   #14
jdc2048
Member
 
Registered: Jul 2002
Distribution: Redhat, Gentoo, Solaris, HP-UX, etc...
Posts: 391

Rep: Reputation: 30
"vipw" is "vi" with syntax checking for the passwd file. I baxsically checks to ensure that all the fields are correct. It would have prevented you from entering that line into the passwd file.
 
Old 02-23-2003, 08:14 PM   #15
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
what are the entries for these users:

fernin8r
Nikatia

in /etc/passwd, /etc/group and /etc/shadow?

also, run this as root:

chown -R fernin8r.fernin8r /home/fernin8r

chown -R Nikatia.users /home/Nikatia

if u have created fernin8r and Nikatia consecutively, they should have uid 500 and 501 consecutively (fernin8r has a gid of 500 and Niikatia has the gid of the users group).
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a user with UID =500 KWTm Ubuntu 1 10-29-2005 11:47 AM
Can't find user id Navaboy Slackware 4 02-01-2005 10:26 AM
How can I find out ANYTHING a user is doing? icyfire Linux - General 4 11-24-2004 10:02 PM
id: cannot find name for user ID 500 stakhous Linux - Newbie 1 07-02-2004 02:25 PM
Where to find the user log? kamil Linux - Networking 4 04-06-2002 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:13 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