1 useradd test
2 grep test /etc/passwd shows test:x:1003:1006::/home/test:/bin/sh
But there is no /home/test in the home directory
3 To solve this problem, just add the -m option to useradd -m test
1 useradd test
2 grep test /etc/passwd shows test:x:1003:1006::/home/test:/bin/sh
But there is no /home/test in the home directory
3 To solve this problem, just add the -m option to useradd -m test