Users and Group Management Flashcards
7 cards from real 010-160 practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 Users and Group Management flashcards as text
Which file stores the encrypted passwords for user accounts on a modern Linux system?
Answer: /etc/shadow
Modern Linux systems store encrypted passwords in /etc/shadow, which is readable only by root.
What command would you use to lock a user account so they cannot log in?
Answer: usermod -L
usermod -L locks a user account by prepending a '!' to the password hash in /etc/shadow.
Which field in /etc/passwd specifies the user's default shell?
Answer: Field 7
The seventh (last) field in /etc/passwd specifies the user's login shell, e.g., /bin/bash.
What does the command 'id username' display?
Answer: The user's UID, GID, and group memberships
The id command displays a user's numeric UID, primary GID, and all supplementary group memberships.
Which command removes a user and their home directory from the system?
Answer: userdel -r username
userdel -r deletes the user account and recursively removes their home directory and mail spool.
A new user is created with useradd. Where is their home directory placed by default?
Answer: /home/username
By default, useradd creates the home directory at /home/username unless overridden with the -d option.
Which command interactively changes a user's password?
Answer: passwd
The passwd command prompts for a new password and updates /etc/shadow with the new hash.
Written and edited by Nathan Beja, founder of Practice Test Geeks, with AI assistance. Exam facts are checked against the official sources linked below. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- lpi.org — Test delivery, eligibility, exam format, score validity, passing score, score release, fees · verified Dec 2026
- pearsonvue.com — Time limit · verified Nov 2026