← 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 numeric permission value represents rwxr-x---?

    Answer: 750

    rwx=7, r-x=5, ---=0, so the octal value is 750.

  2. Which command changes the group ownership of a file to 'devs'?

    Answer: Both A and B

    Both 'chgrp devs file.txt' and 'chown :devs file.txt' change only the group ownership.

  3. A file has permissions -rw-rw-r--. Which class has write access?

    Answer: Owner and group

    rw- for owner and rw- for group means both owner and group have write access; others have read-only.

  4. What does the sticky bit do when set on a directory?

    Answer: Prevents users from deleting files they do not own

    The sticky bit on a directory restricts file deletion so only the file owner, directory owner, or root can remove files.

  5. Which symbolic permission argument adds execute permission for all users?

    Answer: a+x

    'a' stands for all (user, group, others), so 'a+x' adds execute for everyone.

  6. What is the default umask value for a regular user on most Linux systems?

    Answer: 0022

    The default umask for regular users is typically 0022, resulting in files with 644 and directories with 755.

  7. A file is owned by user 'alice' and group 'staff'. The current user is 'bob', who is in the 'staff' group. The file permissions are rw-r--r--. Can bob write to the file?

    Answer: No, bob can only read it via group permissions

    The group permission is r-- (read-only), so bob, matched as a group member, can only read the file.