Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19697 - useradd/adduser fails to create user directory or copy files on fresh Gentoo 1.4 RC4 install
Summary: useradd/adduser fails to create user directory or copy files on fresh Gentoo ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-20 19:41 UTC by Robert Poole
Modified: 2003-04-21 04:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Poole 2003-04-20 19:41:34 UTC
I just did a fresh install of Gentoo Linux on an Athlon system.  I've used previous release 
candidates (RC3, I believe) and had no problems, but with RC4, the useradd (or 
adduser) command refuses to create a user's home directory in /home.  I've confirmed 
that /etc/default/useradd exists and contains rational information.  /etc/skel contains the 
default .bashrc that users are to get.  If there is a different or better command line user 
administration tool, it's not documented.

Reproducible: Always
Steps to Reproduce:
1. Start with a fresh install of Gentoo 1.4 RC4
2. Log in as root
3. Do a "useradd testuser"
4. Check /home -- there will be NO evidence of a home directory for testuser
5. Attempting to invoke useradd with the -p option (to specify a user's initial password) 
likewise fails.

Actual Results:  
useradd seems to take no steps toward actual user account creation except to place an 
entry in /etc/passwd

Expected Results:  
A new home directory for testuser should have appeared in /home, and the user's home 
directory should have been populated with the seed files from /etc/skel.


Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r2 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/
kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm gpm libg++ motif nls gdbm berkdb slang readline tcpd pam 3dnow 
acpi arts avi cdr crypt cups curl dga directfb doc dvd encode freetds gif gphoto2 imlib 
java jpeg lcms libwww mikmod mmx mozilla mpeg ncurses oggvorbis opengl pdflib perl 
plotutils png python qt quicktime scanner sdl slp spell ssl svga tiff truetype usb wmf X 
xinerama xml2 xmms xv gtk kde -gnome alsa zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe"
CXXFLAGS="-march=athlon-tbird -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Robert Poole 2003-04-20 20:08:30 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...
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-04-21 04:57:53 UTC
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