Bug 114095 - useradd won't create home directory
Summary: useradd won't create home directory
Status: RESOLVED INVALID
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 3
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Thorsten Kukuk
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 97395
  Show dependency treegraph
 
Reported: 2005-08-30 11:46 UTC by Martin Mrazik
Modified: 2005-08-30 12:04 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.