Questions

  1. When creating an ACL for a file in a shared directory, what must you first do to make the ACL effective?
    A. Remove all normal permissions from the file for everyone except for the user.
    B. Ensure that the file has the permissions value of 644 set.
    C. Ensure that everyone in the group has read/write permissions for the file.
    D. Ensure that the SUID permission is set for the file.
  2. What is the benefit of setting the SGID permission on a shared group directory?
    A. None. It's a security risk and should never be done.
    B. It prevents members of the group from deleting each others' files.
    C. It makes it so that each file that gets created within the directory will be associated with the group that's also associated with the directory.
    D. It gives anyone who accesses the directory the same privileges as the user of the directory.
  3. Which of the following commands would set the proper permissions for the marketing shared group directory, with the SGID and sticky bit set?
    A. sudo chmod 6770 marketing
    B. sudo chmod 3770 marketing
    C. sudo chmod 2770 marketing
    D. sudo chmod 1770 marketing
  4. Which of the following setfacl options would you use to just remove one specific permission from an ACL?
    A. -xB. -r
    C. -w
    D. m: :
    E. -m
    F. x: :
  5. Which of the following statements is true?
    A. When using .tar, you must use the --acls option for both archive creation and extraction, in order to preserve the ACLs on the archived files.
    B. When using .tar, you need to use the --acls option only for archive creation in order to preserve the ACLs on the archived files.
    C. When using .tar, ACLs are automatically preserved on archived files.
    D. When using .tar, it's not possible to preserve ACLs on archived files.
  1. Which two of the following are not a valid method for adding the user Lionel to the sales group?
    A. sudo useradd -g sales lionel
    B. sudo useradd -G sales lionel
    C. sudo usermod -g sales lionel
    D. sudo usermod -G sales lionel
    E. By hand-editing the /etc/group file.
  2. What happens when you create an inherited ACL?
    A. Every file that gets created in the directory with that inherited ACL will be associated with the group that's associated with that directory.
    B. Every file that gets created in the directory with that inherited ACL will inherit that ACL.
    C. Every file that gets created in that directory with that inherited ACL will have the same permissions settings as the directory.
    D. Every file that gets created in that directory will have the sticky bit set.
  3. Which of the following commands would you use to grant read-only privilege on a file to the user Frank?
    A. chattr -m u:frank:r somefile.txt
    B. aclmod -m u:frank:r somefile.txt
    C. getfacl -m u:frank:r somefile.txt
    D. setfacl -m u:frank:r somefile.txt
  4. You've just done an ls -l command in a shared group directory. How can you tell from that whether an ACL has been set for any of the files?
    A. Files with an ACL set will have  + at the beginning of the permissions settings.
    B. Files with an ACL set will have  - at the beginning of the permissions settings.
    C. Files with an ACL set will have  + at the end of the permissions settings.
    D. Files with an ACL set will have  - at the end of the permissions settings.
    E. The ls -l command will show the ACL for that file.
  5. Which of the following would you use to view the ACL on the somefile.txt file?
    A. getfacl somefile.txt
    B. ls -l somefile.txt
    C. ls -a somefile.txt
    D. viewacl somefile.txt
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.59.187