Bugzilla – Bug 114095
useradd won't create home directory
Last modified: 2005-08-30 12:04:12 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.
RTFM "man useradd": -m, --create-home Create home directory for new user account.
still don't understand why -d does not imply -m. but nevermind....
Because specifying another directory as the default has nothing to do with if the directory should be created or not.