» Linux » Examen sur Linux » Examen 202 : Networking Administration » Section 1 » Question 5/20
5.You issue the following command

useradd –m bobm

But the user cannot logon. What is the problem?

You need to assign a password to bobm’s account using the passwd command.
You need to create bobm’s home directory and set the appropriate permissions.
You need to edit the /etc/passwd file and assign a shell of bobm’s account.
The username must be at least five characters long.

Explanation: When you add a user, the account is disabled until you specify a password for the account. You can use the –p option with the useradd command, but that requires you to enter an encrypted password. For this reason it is easier to use the passwd command. This enables you to enter a plain text password which will then be automatically encrypted.

Reference: Roderick W. Smith. Sybex Linux + Study Guide: page 262.

Incorrect Answers
B: The home directory will be created automatically with the useradd command.
C: The user will use the default shell.
D: The username does not have to be five characters long.

« Question 4 Question 6 »