Timedora
Free Practice Quiz Question List

Linux File Ownership and Permissions Online Quiz Questions

Use this free practice quiz with 20 questions to review Linux File Ownership and Permissions, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

A file is owned by alex and belongs to the group ops. A process runs as user alex and is also a member of ops. Which permission class does Linux use for this process when checking access to the file?

  1. A

    The owner permissions

  2. B

    The group permissions

  3. C

    The other permissions

02
Choose all
1 point

Which practices help apply ownership or permission changes cautiously? Select all correct answers.

  1. A

    Inspect the target with ls -l and confirm the path before changing permissions.

  2. B

    Choose the least access needed and apply the change to a specific target.

  3. C

    Check the result after making the change.

  4. D

    Use chmod -R 777 to make sure access permissions are consistent across all descendants.

03
True or false
1 point

The symbolic mode u+x adds execute permission for the owner while leaving unrelated permission bits unchanged.

  1. A

    True

  2. B

    False

04
Written response
1 point

Which Linux command changes only a file’s group?

05
Fill in the blank
1 point

In octal mode 640, the group digit is .

06
Open ended
1 point

Explain what read, write, and execute/search permissions allow on regular files and on directories. Include the requirement that applies when traversing a path.

07
Choose one
1 point

Which permissions does chmod 750 report.txt set for the owner, group, and other, respectively?

  1. A

    Owner rwx, group r--, other ---

  2. B

    Owner rwx, group r-x, other ---

  3. C

    Owner rw-, group r-x, other ---

  4. D

    Owner rwx, group r-x, other r--

08
Choose all
1 point

Which statements correctly interpret these symbolic chmod modes? Select all correct answers.

  1. A

    chmod u+x script.sh adds owner execute permission.

  2. B

    chmod g-w shared.txt removes group write permission.

  3. C

    chmod o= report.txt removes all permissions for others.

  4. D

    chmod u=rw,g=r,o= file adds the specified permissions without removing any previously set bits.

09
True or false
1 point

If a process does not own a file but belongs to its owning group, Linux uses the file’s other permissions for that process.

  1. A

    True

  2. B

    False

10
Written response
1 point

Which single permission letter allows searching or traversing a directory?

11
Fill in the blank
1 point

Before changing a file’s permissions, first use to inspect the target. After applying the change, the result.

12
Choose one
1 point

Which command changes only a file’s group?

  1. A

    chown changes only the group.

  2. B

    chgrp changes only the group.

  3. C

    ls -l changes only the group.

  4. D

    chmod changes only the group.

13
True or false
1 point

chgrp changes a file’s owning user.

  1. A

    True

  2. B

    False

14
Written response
1 point

What command changes only a file’s group?

15
Choose one
1 point

A process owns a file and attempts to access it. Which permission class is used for the access check?

  1. A

    Owner permissions

  2. B

    Group permissions

  3. C

    Other permissions

  4. D

    All three permission classes equally

16
True or false
1 point

In a symbolic mode such as u+x, the change adjusts the selected bit while leaving unrelated permission bits intact.

  1. A

    True

  2. B

    False

17
Written response
1 point

Which single permission letter allows searching or traversing a directory?

18
Choose one
1 point

A file should have owner permissions rw-, group permissions r--, and other permissions ---. Which three-digit octal mode sets these permissions?

  1. A

    604

  2. B

    460

  3. C

    640

  4. D

    650

19
Written response
1 point

Enter the three-digit octal mode for owner rw-, group r--, and other ---.

20
Choose one
1 point

A process does not own a file, but it belongs to the file’s owning group. Which permission class is used for the access check?

  1. A

    Owner permissions

  2. B

    Group permissions

  3. C

    Other permissions

  4. D

    No permission class is checked