Home
31.
You are trying to use the setfacl command to set ACLs on the directory /data, but you are getting an “operation not supported” message. Which of the following is the most likely explanation?
  • A.
    The setfacl command is not installed on your computer.
  • B.
    You are making an error typing the command.
  • C.
    The user or group to which you want to grant ACLs does not exist .
  • D.
    The file system lacks ACL support.
  • Answer & Explanation
  • Report
Answer : [D]
Explanation :
ACL support is not offered by default on all file systems. If you get an “operation not supported” error message, make sure to add the acl mount option and remount the file system.
Report
Name Email  
32.
Which of the following commands grants rw permissions for the group sales to all new files that will be created in the /data directory and all of its subdirectories?
  • A.
    setfacl -m d:g:sales:rw /data
  • B.
    setfacl -m d:g:sales:rwx /data
  • C.
    setfacl -R -m g:sales:rwx /data
  • D.
    setfacl -R -m g:sales:rw /data
  • Answer & Explanation
  • Report
Answer : [B]
Explanation :
Although answers A and B will both set default ACLs, answer B is better because it adds x to the permissions. Without x, members of the group sales will have no way to enter the directory using the cd command.
Report
Name Email  
33.
Which command enables you to make sure that others have no access to any new files that will be created in the /data directory, assuming that you want others to have read permissions on all other files?
  • A.
    setfacl -m d:o::- /data
  • B.
    setfacl -m o::- /data
  • C.
    umask 027 /data
  • D.
    umask 027
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
The umask is a systemwide setting and cannot be used to apply to specific directories only. Use a default ACL as shown in answer A to perform this task.
Report
Name Email  
34.
Which of the following umask settings meets the following requirements:
--> Grants all permissions to the owner of the file.
--> Grants read permissions to the group owner of the file.
--> Grants no permissions to others.
  • A.
    740
  • B.
    750
  • C.
    027
  • D.
    047
  • Answer & Explanation
  • Report
Answer : [C]
Explanation :
In a umask, 0 in the first position gives all permissions to the file owner. 2 in the second position ensures that members of the group owner can read files, and 7 in the third position takes away all permissions for others.
Report
Name Email  
35.
Which command enables you to check all attributes that are currently set on myfile.
  • A.
    ls --attr myfile
  • B.
    getattr myfile
  • C.
    lsattr myfile
  • D.
    listattr myfile
  • Answer & Explanation
  • Report
Answer : [C]
Explanation :
The lsattr command shows current attribute settings to files. The ls command is not capable of showing file attributes, and the other commands that are mentioned do not exist.
Report
Name Email