RHCSA File Permissions and ACLs Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 12 | Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. In octal notation, what do the three digits represent in a file permission like 755?

Explanation

The three octal digits correspond, in order, to the file’s owner, group, and others. Each digit combines read, write, and execute permissions: in 755, the owner has all three permissions, while the group and others can read and execute but not write.

Submit
Please wait...
About This Quiz
RHCSA File Permissions and ACLS Quiz - Quiz

This quiz tests your understanding of Linux file permissions and Access Control Lists (ACLs) on Red Hat systems. You'll evaluate permission models, symbolic and octal notation, ownership management, and ACL implementation. Essential for RHCSA certification, these skills enable secure file access control and compliance with organizational security policies.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. True or False: The execute permission on a directory allows you to cd into it.

Explanation

Execute permission on a directory allows a user to traverse it, including changing into it with `cd`. Read permission controls whether the user can list the directory’s contents, so execute permission and read permission serve different purposes.

Submit

3. Which command displays extended ACLs for a file?

Explanation

`getfacl` displays a file’s access control list, including extended permissions for specific users and groups. For example, `getfacl filename` shows the file’s ACL entries.

Submit

4. True or False: The chmod command can modify ACLs on a file.

Explanation

`chmod` changes a file’s standard permission bits; it does not directly edit individual ACL entries. ACLs are typically managed with commands such as `setfacl`, so the statement is considered false. (On ACL-enabled filesystems, changing permissions with `chmod` may also affect the ACL mask.)

Submit

5. How do you grant read and write permissions to a specific user via ACL?

Explanation

The `setfacl` command modifies a file’s access control list. The `-m` option adds or updates an ACL entry, and `u:username:rw` grants the specified user read and write permissions on the file.

Submit

6. The permission string 'rw-rw-r--' in octal notation is ____.

Explanation

Permissions are converted by assigning read = 4, write = 2, and execute = 1. The owner’s `rw-` totals 6, the group’s `rw-` totals 6, and others’ `r--` totals 4, giving the octal notation 664.

Submit

7. True or False: ACLs can provide finer-grained access control than standard Unix permissions.

Explanation

Access control lists (ACLs) extend standard Unix permissions by allowing specific permissions to be assigned to individual users and groups. Standard permissions typically divide access into only three categories: file owner, group, and everyone else. This added flexibility lets administrators control access more precisely for multiple users or groups.

Submit

8. The octal value for write permission is ____.

Explanation

In Unix-style file permissions, each permission has a numeric value: read is 4, write is 2, and execute is 1. Permission values are added when combining permissions. Since write permission alone has the value 2, its octal representation is 2.

Submit

9. Which command recursively applies permissions to a directory and its contents?

Explanation

`chmod -R 755 directory` uses the `-R` option to apply the permissions recursively to the directory and everything inside it. The `755` permission grants the owner read, write, and execute access, while others receive read and execute access.

Submit

10. To remove all ACLs from a file, which command is used?

Explanation

`setfacl -b file` removes all access control list (ACL) entries from the specified file, leaving its standard permissions in place.

Submit

11. Which command copies file permissions from one file to another?

Explanation

The `chmod --reference source target` command sets the target file’s permission bits to match those of the source. It reads the mode from the reference file instead of requiring a numeric or symbolic mode. This changes the target’s permissions but does not copy file contents or other metadata, such as ownership or timestamps.

Submit

12. To grant a group execute permission on a file, use chmod ____.

Explanation

In `chmod`, `g` refers to the file’s group, `x` means execute permission, and `+` adds that permission without changing existing permissions. Use `chmod g+x filename` to grant the group execute permission on the specified file.

Submit

13. Which permission allows listing contents of a directory?

Explanation

Read permission (r) allows a user to view the names of files and subdirectories within a directory. Write permission allows changes to its contents, while execute permission allows access to items inside it or traversal through the directory.

Submit

14. What does the 's' in a permission string like 'rwsr-xr-x' indicate?

Explanation

In a Unix permission string, the “s” in the owner’s execute position indicates the setuid bit. When an executable runs, it runs with the file owner’s privileges rather than the privileges of the user who started it.

Submit

15. True or False: Only the root user can change a file's owner.

Explanation

On Unix-like systems, changing a file’s owner is a privileged operation, typically performed by the root user with the `chown` command. Ordinary users generally cannot assign files to another owner, even if they own the file themselves. This restriction helps prevent unauthorized access changes and maintain system security.

Submit

16. Which command changes file ownership to a new user and group?

Explanation

The `chown` command changes a file’s owner and group. In `chown user:group file`, `user` specifies the new owner, `group` specifies the new group, and `file` is the target.

Submit

17. What is the default umask on most Red Hat systems?

Explanation

On most Red Hat systems, the default umask is 0022. A umask masks permission bits when new files and directories are created, removing write permission for group members and others. With the usual base permissions, this commonly produces files with 0644 permissions and directories with 0755, while leaving the owner’s permissions unchanged.

Submit

18. The setgid bit on a directory causes new files to inherit the directory's ____.

Explanation

When a directory has the setgid bit enabled, files created inside it inherit the directory’s group ownership rather than the creating user’s default group. This helps keep shared files associated with the same group and makes collaboration easier.

Submit

19. What does the sticky bit prevent in a shared directory?

Explanation

The sticky bit on a shared directory restricts file deletion: users can remove or rename only files they own, along with directory owners and administrators. It helps prevent users from deleting or altering other users’ files in shared locations such as `/tmp`.

Submit

20. Which command sets the setuid bit on an executable file?

Explanation

In Unix-like systems, the leading octal digit 4 enables the setuid bit, so `chmod 4755 file` sets it while also assigning the specified permissions. The symbolic form `chmod u+s file` sets the same bit directly. By contrast, a leading 2 in `chmod 2755 file` enables the setgid bit, not setuid.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
In octal notation, what do the three digits represent in a file...
True or False: The execute permission on a directory allows you to cd...
Which command displays extended ACLs for a file?
True or False: The chmod command can modify ACLs on a file.
How do you grant read and write permissions to a specific user via...
The permission string 'rw-rw-r--' in octal notation is ____.
True or False: ACLs can provide finer-grained access control than...
The octal value for write permission is ____.
Which command recursively applies permissions to a directory and its...
To remove all ACLs from a file, which command is used?
Which command copies file permissions from one file to another?
To grant a group execute permission on a file, use chmod ____.
Which permission allows listing contents of a directory?
What does the 's' in a permission string like 'rwsr-xr-x' indicate?
True or False: Only the root user can change a file's owner.
Which command changes file ownership to a new user and group?
What is the default umask on most Red Hat systems?
The setgid bit on a directory causes new files to inherit the...
What does the sticky bit prevent in a shared directory?
Which command sets the setuid bit on an executable file?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!