Created a new user in Ubuntu 11.04 using
useradd -d /home/dummy -m dummy
Now, after this I set its password using passwd dummy
But, when i login to that user using su - dummy
I get to see No home directory, logging in with HOME=/
cat /etc/passwd | grep dummy shows dummy:x:1001:1001::/home/dummy:/bin/bash
I manually created dir to resolve this issue through mkdir /home/dummy
Now, the error seems to resolve, but I am amazed as to why no files like bash_profile are created in that home directory
mkdir. /etc/skel is only used when something likeuseraddcreates it. – Patrick Apr 15 '12 at 15:05-mmeans the home directory should have been created and populated from/etc/skel. What happens if you create another user? Check whatuseraddis doing. Are you seeing any message? If you can't find anything, post the output ofstrace useradd -d /home/test1 -m test1. – Gilles Apr 16 '12 at 0:47