man useradd
states:
useradd is a low level utility for adding users. On Debian,
administrators should usually use adduser(8) instead.
Observe o low level utility
Para adicionar um usuário, use adduser
. É um utilitário de mais alto nível.
Além disso, olhando para a opção -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.
Geralmente, mantenha-se longe de useradd
, use adduser
.