WorksheetsXK0-004 - Chapter 3
Total questions: 9
Worksheet time: 18mins
QUESTION 119 A member of the production group issues the following command:
echo Monday through Friday" > /production_docs/days
The command fails to execute so the user obtains the following output:
drwxr--r-- root production 0 Jun 16 2018 production
-rw-r--r-- production production 4096 Jun 14 2018 days
Which of the following commands should the user execute to BEST fix the issue?"
A. chmod g+w production to change the permissions of the days file
B. chgrp root production_docs/days to change the group ownership of the production_docs/ days file
C. chmod g+S production to set the GUID on the production_docs directory
D. chown production to change the ownership of the production_docs directory
QUESTION 136 Ann, a user, has created a new directory and noticed that permissions on the new directory are as follows:
drwx------. 1 ann ann 0 Jun 11 08:20 work
Which of the following should the administrator do to restore default permissions for newly created directories?
A. Change umask value in /etc/profile.
B. Run chmod command to update permissions.
C. Modify directory ownership to ann:ann with chown.
D. Execute chattr command to restore default access.
QUESTION 26 A Linux systems administrator needs to set permissions on an application with the following parameters: The owner of the application should be able to read, write, and execute the application. Members of the group should be able to read and execute the application. Everyone else should not have access to the application. Which of the following commands would BEST accomplish these tasks?
A. chmod 710 <application name>
B. chmod 730 <application name>
C. chmod 750 <application name>
D. chmod 760 <application name>
QUESTION 52 A Linux administrator needs the tech"account to have the option to run elevated commands as root. Which of the following commands would BEST meet this goal?"
A. $ su tech -c /bin/bash""
B. # usermod -aG wheel tech
C. # sudo -l tech
D. # groupadd -u tech g root
