Services and User Management

On an Ubuntu server, an administrator wants to create the account tsmith with one command that creates the home directory by default, copies skeleton files, and interactively prompts for a password and contact details. Which command should be used?

Show the answer

Correct answerB. adduser tsmith

On Debian-based systems, adduser is a friendly front end that applies /etc/adduser.conf defaults, creates the home directory, and prompts for a password and details. Plain useradd is tempting but is non-interactive and does not create a home directory unless -m is given.