Bug 114095

Summary: useradd won't create home directory
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Martin Mrazik <mmrazik>
Component: BasesystemAssignee: Thorsten Kukuk <kukuk>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 97395    

Description Martin Mrazik 2005-08-30 11:46:09 UTC
how to reproduce:  
 
useradd -d /tmp/test_user test_user 
 
if [ -d /tmp/test_user ]; then 
    echo PASSED; else 
    echo FAILED; 
fi 
 
I reproduced this behaviour on SL10 beta3 and on my SL9.3 installation. The 
command without the -d parameter does not work as well.
Comment 1 Thorsten Kukuk 2005-08-30 11:50:15 UTC
RTFM "man useradd":

       -m, --create-home
              Create home directory for new user account.
Comment 2 Martin Mrazik 2005-08-30 12:01:37 UTC
still don't understand why -d does not imply -m. but nevermind....  
Comment 3 Thorsten Kukuk 2005-08-30 12:04:12 UTC
Because specifying another directory as the default has nothing to do with if
the directory should be created or not.