Access Control and Auditing (Linux)
When setting directory permissions, which of the following permissions means users are limited to listing files in the directory? a. Read b. Write c. Execute d. None of the above
a. Read
Which of the following permissions can be used to execute a command that has access to files and directories using the group ownership of the command? a. SGID b. Octal c. Symbolic d. SUID
a. SGID
Which of the following commands can be used to set the sticky bit permission? a. chmod o+t file b. chmod g+s file c. chmod u+s file d. chmod o-t file
a. chmod o+t file
Which of the following commands is used to change either the user owner or group owner of a file or directory? a. chown b. chgrp c. setfacl d. chattr
a. chown
Which of the following commands can be used to determine if SELinux is available (and actively being used) on a system? a. getenforce b. restorecon c. setenforce d. semanage
a. getenforce
Which of the following commands is used to view the permissions of a file or directory? a. ls -l b. cd c. chmod d. umask
a. ls -l
Which of the following is the format of the argument to the -m option for the setfacl command? a. what:who:permission b. who:permission:what c. permission:what:who d. None of the above
a. what:who:permission
The rw-r--r-- file corresponds to which of the following umask values? a. 002 b. 022 c. 027 d. 077
b. 022
SELinux refers to which of the following? a. Security Enabled Linux b. Security Enhanced Linux c. System Enhanced Linux d. System Enabled Linux
b. Security Enhanced Linux
Which of the following permissions changes the behavior of the write permission when applied to a directory? a. SUID b. Sticky bit c. SGID d. Execute
b. Sticky bit
When setting file permissions, which of the following permissions means users can modify the file contents? a. Read b. Write c. Execute d. All of the above
b. Write
Which of the following commands is designed to change the group ownership of a file? a. chown b. chgrp c. setfacl d. chattr
b. chgrp
Which of the following specifies the maximum permissions that anyone besides the user owner and "others" have on the file? a. umask value b. mask value c. mkdir d. getfacl
b. mask value
Which option for the chattr command is used to recursively apply changes to an entire directory structure? a. -r b. -V c. -R d. -v
c. -R
In reference to special permission sets, SUID is short for which of the following? a. Specify User ID b. Set Umask ID c. Set User ID d. Specify Umask ID
c. Set User ID
Which of the following commands is used to create an ACL on a file or directory? a. getfacl b. chmod c. setfacl d. mkdir
c. setfacl
Which of the following commands is used to specify which default permissions to exclude when creating a new file or directory? a. chmod b. cd c. umask d. ls
c. umask
Which of the following is the best solution for allowing the owner of a file to give permissions for specific users and groups? a. SGID b. Sticky bit c. SUID d. Access control lists (ACLs)
d. Access control lists (ACLs)
Which of the following commands is used to change permissions on files? a. umask b. ls c. cd d. chmod
d. chmod
A(n) __________ file is completely unchangeable; it cannot be deleted or modified by anyone, including the root user. a. absolute b. eversible c. irreversible d. immutable
d. immutable