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

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

Bob calls you and tells you that he cannot logon. You verify that he is using the correct username and password. What is the problem?

The UID and GID cannot be identical.
You cannot have spaces in the line unless they are surrounded with double quotes.
You cannot directly enter the password; rather you have to use the passwd command to assign a password to the user.
The username is too short, it must be at least six characters long.

Explanation: The password saved in the /etc/passwd file is encrypted. For this reason, you cannot directly enter the password in this file. Rather, you must use the passwd command. The passwd command will take the plain text password and save it in encrypted form in the /etc/passwd file.

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

Incorrect Answers
A: The UID and the GID can be the same.
B: You can have spaces because each field is separated by a colon (:).
D: The username does not have to be at least six characters long.

« Question 5 Question 7 »