General Linux Intermediate User and Group Permissions 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 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What does umask control in Linux?

Explanation

`umask` sets which permission bits are removed from the default permissions when new files and directories are created. It acts as a mask on the system’s default creation modes, affecting newly created items rather than changing permissions on existing files. It does not control login attempts, group membership, or password expiration.

Submit
Please wait...
About This Quiz
General Linux Intermediate User and Group Permissions Quiz - Quiz

Test your understanding of Linux user and group permissions at the intermediate level. This quiz covers file ownership, permission modes, access control lists, and practical permission management. Essential knowledge for system administrators and developers working in Linux environments.

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. In permission notation, 'x' on a directory allows which action?

Explanation

On a directory, the execute (`x`) permission allows users to traverse or search it, meaning they can access files and subdirectories within it when they know their names. Reading the directory’s file list requires `r`, while creating, modifying, or deleting entries generally requires `w`.

Submit

3. What command is used to edit the sudoers file safely?

Explanation

`visudo` is the recommended command for editing the sudoers file. It checks the file’s syntax before saving changes and helps prevent errors that could interfere with sudo access. It also typically manages locking to avoid simultaneous edits.

Submit

4. Which special permission is represented by 's' in the user position?

Explanation

In Unix-like file permissions, an “s” in the user (owner) execute position indicates the setuid special permission. When the file is executable, a process running it temporarily uses the file owner’s privileges rather than the permissions of the user who launched it. If the execute bit is absent, this position appears as uppercase “S.”

Submit

5. What does 'w' permission allow on a directory?

Explanation

Write (`w`) permission on a directory allows a user to modify its entries, such as creating new files or deleting existing ones. It does not grant permission to read file contents or list the directory. Accessing entries generally also requires execute (`x`) permission on the directory.

Submit

6. Which command recursively changes permissions on files and directories?

Explanation

`chmod -R` applies permission changes recursively, including to files and directories beneath the specified path. The uppercase `-R` option tells `chmod` to traverse subdirectories. By contrast, `chown` changes ownership and `chgrp` changes group ownership; neither is the command for changing permissions.

Submit

7. The setgid bit on a directory causes new files to inherit which attribute?

Explanation

When a directory has the setgid bit set, newly created files inherit the directory’s group ownership rather than the creator’s default group. This helps keep shared files associated with the same group.

Submit

8. What is the purpose of the /etc/sudoers file?

Explanation

The `/etc/sudoers` file specifies which users and groups can run commands with elevated privileges using `sudo`, and under what conditions. It can also define which commands they are allowed to run and whether a password is required.

Submit

9. Which command adds a user to a secondary group?

Explanation

`usermod -a -G` adds a user to a supplementary (secondary) group. Use it with the group name and username, such as `usermod -a -G developers alice`. The `-G` option specifies supplementary groups, while `-a` appends the group instead of replacing the user’s existing supplementary group memberships.

Submit

10. If umask is 0022, what permissions will a newly created file have?

Explanation

A newly created file typically starts with permissions 666. Applying umask 0022 removes write permission for the group and others, leaving 644: read and write for the owner, and read-only for everyone else.

Submit

11. What does the first character in a file's permission string represent?

Explanation

In a Unix-style permission string, the first character identifies the kind of file, such as a regular file (`-`), directory (`d`), or symbolic link (`l`). The following characters show the read, write, and execute permissions assigned to the owner, group, and others.

Submit

12. Which file contains encrypted password hashes?

Explanation

On Linux systems, `/etc/shadow` stores users’ password hashes along with password-aging and expiration information. Access is restricted because this data is sensitive. `/etc/passwd` contains general account details, while `/etc/group` lists group information and `/etc/sudoers` defines permissions for using administrative commands.

Submit

13. What file stores user account information in Linux?

Explanation

Linux stores basic user account information in `/etc/passwd`, including usernames, user and group IDs, home directories, and login shells. Password hashes are generally kept separately in `/etc/shadow` for security. `/etc/group` contains group information, while `/etc/users` is not a standard Linux account file.

Submit

14. Which command displays the groups a user belongs to?

Explanation

The `groups` command displays the group memberships of the current user. You can also provide a username to view another user’s groups. It prints the names of the groups, making it a straightforward way to check a user’s group access.

Submit

15. The sticky bit is most commonly used on which type of directory?

Explanation

The sticky bit is commonly set on shared temporary directories, such as `/tmp`. It allows users to create files there while preventing them from deleting or renaming files owned by other users; typically, only the file’s owner or a privileged user can do so.

Submit

16. What is the numeric value of the sticky bit in octal notation?

Explanation

In Unix file permissions, the sticky bit is represented by the special permission value **1000** in octal notation. For comparison, setgid is **2000** and setuid is **4000**.

Submit

17. The setuid bit on an executable file allows it to run with which user's privileges?

Explanation

When an executable has the setuid bit set, it runs with the privileges of the file’s owner rather than those of the user who launched it. For example, if the file is owned by root, it runs with root privileges, subject to system security rules.

Submit

18. Which command changes file ownership in Linux?

Explanation

`chown` changes the owner of a file or directory in Linux. By contrast, `chmod` changes permissions, and `chgrp` changes the group ownership.

Submit

19. What octal value corresponds to the permission string 'rwxr-xr-x'?

Explanation

Each permission triplet is converted using read = 4, write = 2, and execute = 1. The owner’s `rwx` adds to 7; the group’s and others’ `r-x` each add to 5. Thus, `rwxr-xr-x` corresponds to octal `755`.

Submit

20. In octal notation, which value represents read permission?

Explanation

In Unix-style permission notation, read permission is assigned the value 4. Write is 2 and execute is 1; these values can be added to represent combinations of permissions.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does umask control in Linux?
In permission notation, 'x' on a directory allows which action?
What command is used to edit the sudoers file safely?
Which special permission is represented by 's' in the user position?
What does 'w' permission allow on a directory?
Which command recursively changes permissions on files and...
The setgid bit on a directory causes new files to inherit which...
What is the purpose of the /etc/sudoers file?
Which command adds a user to a secondary group?
If umask is 0022, what permissions will a newly created file have?
What does the first character in a file's permission string represent?
Which file contains encrypted password hashes?
What file stores user account information in Linux?
Which command displays the groups a user belongs to?
The sticky bit is most commonly used on which type of directory?
What is the numeric value of the sticky bit in octal notation?
The setuid bit on an executable file allows it to run with which...
Which command changes file ownership in Linux?
What octal value corresponds to the permission string 'rwxr-xr-x'?
In octal notation, which value represents read permission?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!