Re: useradd

Chad Huneycutt <[email protected]>
Newsgroups gmane.linux.gentoo.newbies
Organization Georgia Tech College of Computing
Message-ID <[email protected]>
mike wrote:
> has this always happened ?
> if there is no entry in /etc/passwd for a username i dont
> believe you can log in ...
> thus if he overwrote /etc/passwd then it would say 'login incorrect'

Oops, I didn't read his message closely enough (or wasn't thinking). 
You are right; he wouldn't be able to log in, if there was no 
/etc/passwd entry.

Do all accounts have this problem?  Try creating a new one.  If it is 
just yours, take a close look at /etc/passwd and /etc/shadow.  I can't 
think of what the problem would be, but it seems like it should be there.

Chad

> 
> ----- Original Message ----- 
> From: "Chad Huneycutt" <[email protected]>
> 
>>David Obwaller wrote:
>>
>>>I recently installed Gentoo 1.2 from the stage3 tarball. I updated the
>>>portage tree and merged a recent linux kernel (linux-2.4.19). I added a
>>>user using the command:
>>>
>>>useradd -m -g users -G wheel username
>>>
>>>and set a password. Now, when I log into this account I get an error:
>>>
>>>/usr/bin/whoami: cannot find username for UID 1000
>>>
>>>The prompt looks like "I have no name!@stoner / $" where stoner is my
>>>hostname.
>>
>>Did you update baselayout, and let it overwrite your /etc/passwd and 
>>/etc/shadow file?  That is what I suspect happened.  Take a look at that 
>>file, and see if it has all of your users in it.


-- 
Chad Huneycutt                                try { Windows }
Ph.D. Student                                 catch ( Exception BSOD )
Georgia Tech College of Computing               { linux };
http://www.cc.gatech.edu/~chadh
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.