← All RHCE Flashcard Decks

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
  1. Which file stores hashed passwords for local user accounts in RHEL?

    Answer: /etc/shadow

    `/etc/shadow` stores encrypted passwords and password aging information for local users.

  2. What command creates a new user named `jdoe` with a home directory?

    Answer: useradd -m jdoe

    `useradd -m jdoe` creates the user and the `-m` flag ensures the home directory is created.

  3. Which command sets an expiry date of 2026-12-31 for user `jdoe`?

    Answer: chage -E 2026-12-31 jdoe

    `chage -E` sets the account expiration date for a user in YYYY-MM-DD format.

  4. What does the `id` command display when run as a normal user?

    Answer: UID, GID, and group memberships

    The `id` command prints the UID, GID, and supplementary group memberships of the current or specified user.

  5. Which command adds user `jdoe` to the supplementary group `wheel`?

    Answer: usermod -aG wheel jdoe

    `usermod -aG wheel jdoe` appends the user to the `wheel` group without removing existing group memberships.

  6. What field in `/etc/passwd` specifies the user's default shell?

    Answer: 7th field

    The seventh (last) field in `/etc/passwd` specifies the user's login shell.

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

  1. redhat.com — Test delivery, renewal, score validity, exam format, score release, exam information · verified Oct 2026