Create a new user:

sudo useradd -m new_user -s /usr/bin/passwd

flag -m in order to create a home directory for this user flag -s gives the shell to the user /usr/bin/password allows to the user to change the password, but not to login

Get entries from the administrative database; e.g. if a user was created:

sudo getent passwd new_user
new_user:x:1001:1002::/home/new_user:/bin/sh

Get a (new) password to new_user

sudo passwd new-user
New password:
Retype new password:
passwd: password updated successfully