User and Group Management Flashcards
6 cards from real RHCE practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 User and Group Management flashcards as text
Which command locks a user account to prevent login?
Answer: Both A and B
Both `usermod -L` and `passwd -l` lock a user account by prepending `!` to the password hash in `/etc/shadow`.
What is the default UID range for regular users in RHEL 8?
Answer: 1000–60000
In RHEL 8, regular users are assigned UIDs starting at 1000, as defined in `/etc/login.defs`.
Which command changes the primary group of user `jdoe` to `developers`?
Answer: usermod -g developers jdoe
`usermod -g` changes the primary (login) group of the specified user.
Which file defines defaults like `PASS_MAX_DAYS` for new user accounts?
Answer: /etc/login.defs
`/etc/login.defs` contains system-wide defaults for user account creation including password aging policies.
What command deletes user `jdoe` along with their home directory?
Answer: userdel -r jdoe
`userdel -r` removes the user account and recursively deletes their home directory and mail spool.
Which command displays password aging information for user `jdoe`?
Answer: chage -l jdoe
`chage -l` lists the password aging information for a user in a human-readable format.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. 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
- redhat.com — Test delivery, renewal, score validity, exam format, score release · verified Oct 2026