» Linux » Examen sur Linux » Examen 202 : Networking Administration » Section 2 » Question 11/20
11.You create a new user by adding the following line to the /etc/passwd file

bobm::501:501:Bob Morris:/home/bobm:/bin/bash

You then create the user’s home directory and use the passwd command to set his password. However, the user calls you and says that he cannot log on. What is the problem?

The user did not change his password.
bobm does not have permission to /home/bobm.
The user did not type his username in all caps.
You cannot leave the password field blank when creating a new user.

Explanation: You should use the useradd utility to create a new user. This will create the home directory and apply the necessary permissions to it. As you didn’t use useradd, you would have to have manually created the home directory (/home/bobm). The most likely reason for the login failure is that you didn’t give the user account the necessary permissions on the home directory.

Incorrect Answers
A: The user should be able to log on with the password that you set.
C: The username is bobm which is lowercase.
D: You can leave the password field blank. Furthermore, you set the password with the passwd command, so it is no longer blank.

« Question 10 Question 12 »