Summary: | useradd/adduser fails to create user directory or copy files on fresh Gentoo 1.4 RC4 install | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Robert Poole <lionlad> |
Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Robert Poole
2003-04-20 19:41:34 UTC
Whoops. My bad. I discovered that you have to use the -m command line switch to create the user's home directory. Why this isn't the default behavior is beyond me. The -m switch isn't documented until fairly late in the man pages for this core system utility... http://www.gentoo.org/doc/en/faq.xml How do i add a normal user? Everyone seems to think that i shouldn't be using root for everyday use, how can i add another user? The command adduser gentoo will add a user called gentoo. The next step is to give this user a password and passwd will do exactly that. Insteed of adduser you can also use: Code listing 2.2 # useradd gentoo -m -G users,audio,wheel -s /bin/bash This will add a user gentoo, will make possible for him to use sound-related devices (/dev/sound/*), will make possible for him to switch to root (using su) and will make /bin/bash his login shell. or emerge superadduser |