man useradd
состояния:
useradd is a low level utility for adding users. On Debian,administrators should usually use adduser(8) instead.
Обратите внимание на low level utility
Чтобы добавить пользователя, используйте adduser
вместо. Это утилита более высокого уровня.
Более того, глядя на -d
вариант:
-d, --home HOME_DIR The new user will be created using HOME_DIR as the value for the user's login directory. The default is to append the LOGIN name to BASE_DIR and use that as the login directory name. The directory HOME_DIR does not have to exist but will not be created if it is missing.
The directory will not be created if it is missing.
Как правило, держитесь подальше от useradd
, использовать adduser
вместо.