โ† All 010-160 Flashcard Decks

File Permissions and Ownership 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 File Permissions and Ownership flashcards as text
  1. What permission is needed to list the contents of a directory?

    Answer: Read (r)

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

  2. Which command recursively changes ownership of /var/www to user 'www-data'?

    Answer: chown -R www-data /var/www

    chown -R applies the ownership change recursively to all files and subdirectories.

  3. What does the SUID bit do when set on an executable file?

    Answer: Runs the file with the owner's privileges

    SUID causes an executable to run with the file owner's effective user ID instead of the caller's.

  4. How is the SUID bit represented in ls -l output for a file with execute permission?

    Answer: s in the owner execute position

    A lowercase 's' in the owner execute position means SUID is set and execute is also set.

  5. Which octal value sets the sticky bit on a directory along with permissions 755?

    Answer: 1755

    The sticky bit is represented by the leading octal digit 1, so 1755 = sticky + rwxr-xr-x.

  6. What permission is required to enter (cd into) a directory?

    Answer: Execute (x)

    Execute permission on a directory allows users to enter it and access its contents.

  7. A user runs 'chmod 600 private.key'. What permissions does this set?

    Answer: Owner read and write; no permissions for group or others

    600 = rw------- meaning only the owner can read and write; group and others have no permissions.