Re: useradd
Kerin Millar <[email protected]>
| Newsgroups | gmane.linux.gentoo.newbies |
|---|---|
| Message-ID | <[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 <snip> > I suppose it should look like "username@stoner / $". What went wrong? That's a really good question. I'm not sure how that came about. One thing I would definitely recommend is to look at your system logs because the kernel stores pretty detailed information about the results of running user management commands. Use the less command on the files under the /var/log/everything directory. Pick the file corresponding with the date that you performed the action (or simple less /var/log/everything/current if you did it today). Be aware that if semething has been submitted to syslog recently and you use metalog, then the data might not have been physically flushed to disk yet (see the Gentoo Installation guide for how to workaround that problem). Also you could try using the chown (along with the -R switch) command on /home/username just to make sure all the permissions are correct. --kerframil