โ† All 010-160 Flashcard Decks

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
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.