Access Permissions

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 Pedyanto
P
Pedyanto
Community Contributor
Quizzes Created: 3 | Total Attempts: 7,276
| Attempts: 601 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. Below are the benefits from access permission, EXCEPT

Explanation

Access permissions are used to control the actions that users can perform on files and directories. The benefits of access permissions include restricting users from removing files, modifying files, and viewing the content of files and directories. However, restricting users from making the hard disk full is not a benefit of access permissions. This is because access permissions do not directly control the amount of disk space a user can consume. Disk space management is typically handled through other mechanisms such as quotas or disk usage monitoring tools.

Submit
Please wait...
About This Quiz
Access Permissions - Quiz

Test your skills about Linux access permissions concepts and commands.

And evaluate your knowledge and skills, even share your score test to Facebook. ;-)

Just fill... see moreyour real name and click Start Quiz! see less

2. Chmod 644 finance.doc 644 equals to

Explanation

The command "chmod 644 finance.doc" sets the permissions of the file "finance.doc" to read and write for the owner, and read-only for the group and others. In the given answer, "rw- r-- r--", the first three characters "rw-" represent the permissions for the owner (read and write), the next three characters "r--" represent the permissions for the group (read-only), and the last three characters "---" represent the permissions for others (no access).

Submit
3. If you want to restrict users from directory content listing, you have to

Explanation

To restrict users from directory content listing, you need to change the directory read permission. By changing the directory read permission, you are preventing users from accessing the contents of the directory, including file names and metadata. This ensures that users cannot view or list the files and directories within the specified directory. Changing the file write permission, file read permission, or directory write permission alone will not prevent directory content listing.

Submit
4. If you want to protect files from content modifications, you have to

Explanation

To protect files from content modifications, you need to change the file write permission. By changing the write permission, you can restrict the ability to modify the file's content. This ensures that unauthorized users or malicious software cannot make any changes to the file, maintaining its integrity and preventing any unwanted modifications. Changing the file read permission or the permissions of the file's directory will not directly protect the file from content modifications.

Submit
5. Chmod u+s /usr/sbin/trackdata What is the "s" mean?

Explanation

The "s" in the command "chmod u+s /usr/sbin/trackdata" stands for "suid," which is short for Set User ID. When the suid permission is set on an executable file, the file will run with the permissions of the file owner instead of the user who is executing it. This can be useful in situations where certain privileges or access levels are required to perform a specific task, allowing users to execute the file with elevated permissions without needing to have those permissions themselves.

Submit
6. If you want to protect files from deletion, you have to

Explanation

To protect files from deletion, you need to change the file's directory write permission. By changing the directory write permission, you can prevent users from modifying or deleting files within that directory. This means that even if someone has write permission for the file itself, they will not be able to delete it if they do not have write permission for the directory it is located in. This adds an extra layer of security and helps to safeguard important files from accidental or unauthorized deletion.

Submit
7. The difference between "x" permission in file and directory, is

Explanation

The correct answer is "enter permission in directory, execute permission in file". This means that for a directory, the "x" permission allows a user to enter (i.e., access) the directory, while for a file, the "x" permission allows a user to execute (i.e., run) the file.

Submit
8. The command to restrict user not to delete finance.doc within directory /home/budi

Explanation

The correct answer is "chmod -w /home/budi". This command removes the write permission for the directory "/home/budi", which means that users will not be able to delete the file "finance.doc" within that directory. The other commands either change the write permission for the file itself or for the entire directory, but they do not specifically restrict the deletion of "finance.doc" within "/home/budi".

Submit
9. Chmod 4755 /usr/sbin/trackdata 4755 equals to

Explanation

The correct answer is "rws r-x r-x". The "chmod 4755" command sets the permissions of the file "/usr/sbin/trackdata" to "rws r-x r-x". The "rws" indicates that the file has the setuid permission, which allows users to execute the file with the permissions of the file's owner. The "r-x r-x" indicates that the file's owner has read and execute permissions, while other users have only execute permissions.

Submit
10. What happen if I run this command: umask 26

Explanation

Running the command "umask 26" sets the default file and directory creation permissions. The umask command is used to modify the default permissions for newly created files and directories. In this case, the umask value of 26 is being set. The umask value is subtracted from the default permissions, so the resulting file mode creation becomes 644 (666 - 26) and the resulting directory mode creation becomes 755 (777 - 26). The permissions are represented as rwx r-x --x, where "r" denotes read permission, "w" denotes write permission, and "x" denotes execute permission.

Submit
View My Results

Quiz Review Timeline (Updated): Mar 22, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jul 28, 2010
    Quiz Created by
    Pedyanto
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Below are the benefits from access permission, EXCEPT
Chmod 644 finance.doc 644 equals to
If you want to restrict users from directory content listing, you have...
If you want to protect files from content modifications, you have to
Chmod u+s /usr/sbin/trackdata What is the "s" mean?
If you want to protect files from deletion, you have to
The difference between "x" permission in file and directory, is
The command to restrict user not to delete finance.doc within...
Chmod 4755 /usr/sbin/trackdata 4755 equals to
What happen if I run this command: umask 26
Alert!

Advertisement