โ† All 010-160 Flashcard Decks

System Security & User Permissions 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 System Security & User Permissions flashcards as text
  1. Which file contains the list of all groups on a Linux system?

    Answer: /etc/group

    /etc/group stores group definitions including group name, GID, and member list.

  2. A script has the SGID bit set. What happens when it executes?

    Answer: It runs with the privileges of the file's group owner

    The Set Group ID (SGID) bit causes execution with the file group's privileges rather than the caller's group.

  3. Which command is used to set an expiry date for a user's password?

    Answer: chage -E

    `chage -E YYYY-MM-DD username` sets the date on which the account expires.

  4. What permission does 'r' grant on a directory?

    Answer: Allows listing the directory's contents

    Read permission on a directory allows listing its contents with `ls`.

  5. Which command would display the last time each user logged in?

    Answer: lastlog

    `lastlog` reads /var/log/lastlog and shows the most recent login time for every user account.

  6. What is the effect of running `chmod o-r file.txt`?

    Answer: Removes read permission from others

    In symbolic chmod syntax, 'o' means others, '-' removes, and 'r' is read permission.

  7. Which of the following best describes the principle of least privilege?

    Answer: Users and processes should have only the minimum permissions needed for their tasks

    Least privilege limits access rights to the minimum necessary, reducing the attack surface.