Access Permissions

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Pedyanto
P
Pedyanto
Community Contributor
Quizzes Created: 3 | Total Attempts: 7,154
Questions: 10 | Attempts: 588

SettingsSettingsSettings
Access Quizzes & Trivia

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 your real name and click Start Quiz!


Questions and Answers
  • 1. 

    Below are the benefits from access permission, EXCEPT

    • A.

      Restricting users not to remove files

    • B.

      Restricting users not to modify files

    • C.

      Restricting users not to see the content of files

    • D.

      Restricting users not to see the content of directory

    • E.

      Restricting users not to make the hard disk full

    Correct Answer
    E. Restricting users not to make the hard disk full
    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.

    Rate this question:

  • 2. 

    If you want to protect files from deletion, you have to

    • A.

      Change the file write permission

    • B.

      Change the file read permission

    • C.

      Change the file's directory write permission

    • D.

      Change the file's directory read permission

    Correct Answer
    C. Change the file's directory write permission
    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.

    Rate this question:

  • 3. 

    If you want to protect files from content modifications, you have to

    • A.

      Change the file write permission

    • B.

      Change the file read permission

    • C.

      Change the file's directory write permission

    • D.

      Change the file's directory read permission

    Correct Answer
    A. Change the file write permission
    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.

    Rate this question:

  • 4. 

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

    • A.

      Change the file write permission

    • B.

      Change the file read permission

    • C.

      Change the directory write permission

    • D.

      Change the directory read permission

    Correct Answer
    D. Change the directory read permission
    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.

    Rate this question:

  • 5. 

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

    • A.

      Chmod +w finance.doc

    • B.

      Chmod -w finance.doc

    • C.

      Chmod +w /home/budi

    • D.

      Chmod -w /home/budi

    Correct Answer
    D. Chmod -w /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".

    Rate this question:

  • 6. 

    Chmod 644 finance.doc644 equals to

    • A.

      Rwx r-x r-x

    • B.

      Rw- r-x r-x

    • C.

      R-- r-- ---

    • D.

      Rw- r-- r--

    • E.

      Rw- rw- rw-

    Correct Answer
    D. Rw- r-- r--
    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).

    Rate this question:

  • 7. 

    Chmod u+s /usr/sbin/trackdataWhat is the "s" mean?

    • A.

      Sticky bit

    • B.

      Sgid

    • C.

      Suid

    • D.

      Ssid

    Correct Answer
    C. Suid
    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.

    Rate this question:

  • 8. 

    Chmod 4755 /usr/sbin/trackdata4755 equals to

    • A.

      Command error

    • B.

      Rwx r-x r-x

    • C.

      Rw- r-s r-s

    • D.

      Rws r-x r-x

    Correct Answer
    D. Rws r-x r-x
    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.

    Rate this question:

  • 9. 

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

    • A.

      Both means execute permission in directory and file

    • B.

      Execute permission in directory, enter permission in file

    • C.

      Enter permission in directory, execute permission in file

    • D.

      Execute permission in file, not applicable in directory

    Correct Answer
    C. Enter permission in directory, execute permission in file
    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.

    Rate this question:

  • 10. 

    What happen if I run this command:umask 26

    • A.

      Default file mode creation become 644

    • B.

      Default directory mode creation become 755

    • C.

      Default file mode creation become rwx r-x r-x

    • D.

      Default directory mode creation become rwx r-x --x

    • E.

      How the hell I know?

    Correct Answer
    D. Default directory mode creation become rwx r-x --x
    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.

    Rate this question:

Quiz Review Timeline +

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

Related Topics

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.