โ† All RHCSA Flashcard Decks

RHCSA User and Group Management Flashcards

7 cards from real RHCSA practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 RHCSA User and Group Management flashcards as text
  1. Which command sets the account expiration date for user 'frank' to December 31, 2026?

    Answer: Both A and B

    Both 'usermod -e' and 'chage -E' can set the account expiration date to a specific date.

  2. What UID range is typically reserved for system/service accounts on RHEL?

    Answer: 0-999

    On RHEL, UIDs 0-999 are reserved for system accounts, with regular users starting at UID 1000 by default.

  3. An admin wants to lock user 'grace' from logging in without deleting her account. Which command does this?

    Answer: Both A and B

    Both 'usermod -L' and 'passwd -l' lock an account by prepending '!' to the password hash in /etc/shadow.

  4. Which command would display detailed password aging information for user 'helen'?

    Answer: chage -l helen

    chage -l provides a human-readable summary of all password aging attributes for a user.

  5. When using 'newgrp finance', what effect does this have on the current shell session?

    Answer: Starts a new shell with 'finance' as the effective primary group

    newgrp starts a new subshell where the specified group becomes the effective primary group for file creation.

  6. What does the command 'gpasswd -d ivan admins' do?

    Answer: Removes user 'ivan' from the 'admins' group

    gpasswd -d removes (deletes) a user from the specified group.

  7. Which configuration file defines the minimum and maximum UID values for regular users created by useradd?

    Answer: /etc/login.defs

    /etc/login.defs contains UID_MIN and UID_MAX that define the valid UID range for regular user accounts.

RHCSA User and Group Management Flashcards โ€” RHCSA Study Cards with Answers