Home > Linux > Quizzes > Linux Basics Practice Test: Linux File Permissions
Linux Basics Practice Test: Linux File Permissions
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “With a umask value of 112, what is the default permission assigned to newly crea…”
Linux file permissions control who can read, write, and execute the contents of a file or directory. Each permission is represented by an abbreviation (r, w, or x) and an octal value. The permissions are broken into groups of three, and each position in the group denotes a specific permission: First three characters (2–4): Represent the permissions for the file's owner Second group of three characters (5–7): Consist of the permissions for the group to which the file belongs Last group of three characters (8–10): Represent the permissions for everyone else  The three digits of a permission... Show more
Linux Basics Practice Test: Linux File Permissions
Time left 00:00
22 Questions

1. Which of the following umask settings allow execute permission to be set by default on regular files
2. Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?
3. If user tries to remove (rm) a readonly file (444 permission), what will happen?
4. If the umask value is 0002. what will be the permissions of new directory
5. Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?
6. What is the command to set the execute permissions to all the files and subdirectories within the directory /home/user1/direct
7. What does chmod +t do?
8. The permission -rwSr–r– represented in octal expression will be
9. Effective group id can be set using following permission
10. The permission -rwxr-sr– represented in octal expression will be
11. Which of the following umask settings allow execute permission to be set by default on regular files
12. The command chmod 4777 a.out
13. What is the command to set the execute permissions to all the files and subdirectories within the directory /home/user1/direct
14. A user executes the following command successfully:
$ chmod +x file1.txt
Which of the following is true of the output of this command?
15. Given the command
$ chmod o-w datafile
16. If the umask value is 0002. what will be the permissions of new directory
17. What does chmod +t do?
18. If user tries to remove (rm) a readonly file (444 permission), what will happen?
19. Which command is used to assign read-write permission to the owner?
20. If you are a root user, how can you grand execute permission only for the owner of the file project1?
21. Effective group id can be set using following permission
22. Which command is used to assign read-write permission to the owner?