Ownership and Permissions M17 Exam

  1. Which of the following commands set the other permissions on a file to r-x?

    • chmod o=rx file
    • chmod o+rx file
    • chmod o-r-w file
    • chmod o=r+x file
  2. Which of the following commands sets the other permissions on a file to r-x?

    • chmod 776 file
    • chmod 777 file
    • chmod 775 file
    • chmod 774 file
  3. Only one set (user, group, other) of permission can be changed at once using the symbolic method. True or False?

    • True
    • False
  4. Which of the following are methods for setting permissions using the chmod command? (choose two)

    • octal
    • primary
    • letter
    • symbolic
  5. The chown command can be used to change the owner and group of a file. True or False?

    • True
    • False
  6. The user sysadmin will be able to read a file because they own it. True or False?

    • True
    • False
  7. The user sysadmin will be able to change the permissions of a file because they own it. True or False?

    • True
    • False
  8. Octal notation uses the following values for the permissions granted:

    • r = 4, w = 2, x = 1
    • r = 4, w = 2, x = 0
    • r = 7, w = 5, x = 0
    • r = 3, w = 2, x = 1
  9. Which of the following permissions would allow all users to add, view, and delete files in a directory?

    • 750
    • 775
    • 666
    • 777
  10. A user cannot delete a file if they do not own it. True or False?

    • True
    • False
  11. The execute permission on a directory allows you to: (choose three)

    • Change to that directory or use it as part of a path
    • Along with read permission to successfully perform ls -l
    • Along with write permission to successfully create new files
    • Along with write permission to successfully delete the directory
  12. The execute permission on a file allows you to:

    • Move the file to a new directory
    • This permission isn’t meaningful for text files.
    • Run the file as a script
    • Delete the file
  13. The chgrp command can be used on a file by:

    • Only root
    • The file owner and root
    • A user that belongs to the files current group
    • Only the file owner
  14. The chown command can be used to change the user owner on a file by:

    • The file owner and root
    • The file owner
    • A user that belongs to the files current group
    • Only root
  15. The chmod command can be used on a file by:

    • A user that belongs to the files current group
    • Only root
    • The file owner and root
    • The file owner
  16. The execute permission is never set on files by default. True or False?

    • True
    • False
  17. Which of the following chown commands will change the myFile user ownership to the user sam and the group ownership to administrators?(choose two)

    • chown sam.administrators myFile
    • chown sam:administrators myFile
    • chown sam administrators myFile
    • chown sam+administrators myFile
  18. The chown command permits changing group ownership done by root only. True or False?

    • True
    • False
  19. The user owner of a file will always have the same or higher permissions as “other”. True or False?

    • True
    • False
  20. Which of the following commands will list hidden files as well as their ownership?

    • ls -a
    • ls -la
    • ls -l
    • ls -z
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments