The problem that there is no directory with the same name under the home after linux creates a new user

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

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326726419&siteId=291194637