LPI
117-102 · Question #257
You have a user whose account you want to disable but not remove. What should you do?
The correct answer is D. Edit /etc/passwd and insert an * after the first. See the full explanation below for the reasoning.
Question
You have a user whose account you want to disable but not remove. What should you do?
Options
- AEdit /etc/gshadow and just remove his name
- BEdit /etc/passwd and change all numbers to 0
- CEdit /etc/shadow and remove the last field
- DEdit /etc/passwd and insert an * after the first :
- EEdit /etc/group file and put a # sign in front of his name
How the community answered
(44 responses)- A16% (7)
- B2% (1)
- C2% (1)
- D73% (32)
- E7% (3)
Community Discussion
No community discussion yet for this question.