Posted on

Linux+ – LX0-102 – Exam 2 Samples – Question 46

An administrator has a user whose account needs to be disabled but not removed. Which of the following should the administrator do?

A. Edit /etc/gshadow and just remove the user name. and just remove the user? name.
B. Edit /etc/passwd and change all numbers to 0.
C. Edit /etc/shadow and remove the last field.
D. Edit /etc/passwd and insert an * after the first : .
E. Edit /etc/group file and put a # sign in front of the user name. sign in front of the user? name.

Correct Answer: D

Leave a Reply

Your email address will not be published. Required fields are marked *