Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

XK0-004 - Chapter 3

Total questions: 9

Worksheet time: 18mins

Name
Class
Date
1.

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)

A. chmod g+w production to change the permissions of the days file

b)

B. chgrp root production_docs/days to change the group ownership of the production_docs/ days file

c)

C. chmod g+S production to set the GUID on the production_docs directory

d)

D. chown production to change the ownership of the production_docs directory

2.
QUESTION 124 A Linux systems administrator installed a new web server, which failed while attempting to start. The administrator suspects that SELinux is causing an issue and wants to temporarily put the system into permissive mode. Which of the following would allow the administrator to accomplish this?
a)
A. echo SELINUX=PERMISSIVE >> /etc/sysconfig/selinux
b)
B. setenforce 0
c)
C. sestatus 0
d)
D. chcon httpd_sys_content_t /var/
3.

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)

A. Change umask value in /etc/profile.

b)

B. Run chmod command to update permissions.

c)

C. Modify directory ownership to ann:ann with chown.

d)

D. Execute chattr command to restore default access.

4.
QUESTION 2 A technical support engineer receives a ticket from a user who is trying to create a 1KB file in the /tmp directory and is getting the following error No space left on device. The support engineer checks the /tmp directory, and it has 20GB of free space. Which of the following BEST describes a possible cause for this error?
a)
A. The /tmp directory is not mounted.
b)
B. The filesystem is formatted with a 4MB block size.
c)
C. the filesystem ran out of inodes.
d)
D. The /tmp directory has been set with an immutable attribute.
5.

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)

A. chmod 710 <application name>

b)

B. chmod 730 <application name>

c)

C. chmod 750 <application name>

d)

D. chmod 760 <application name>

6.

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)

A. $ su tech -c /bin/bash""

b)

B. # usermod -aG wheel tech

c)

C. # sudo -l tech

d)

D. # groupadd -u tech g root

7.
QUESTION 70 Two specific users need access to a directory owned by root where backups are located. Which of the following commands would BEST ensure the specified users can access the backup files?
a)
A. umask
b)
B. chcon
c)
C. chmod
d)
D. setfacl
8.
QUESTION 81 A company wants to ensure that all newly created files can be modified only by their owners and that all new directory content can be changed only by the creator of the directory. Which of the following commands will help achieve this task?
a)
A. umask 0022
b)
B. umask 0012
c)
C. chmod -R 0644 /
d)
D. chmod -R 0755 /
9.
QUESTION 83 A Linux administrator needs every new file created on a directory to maintain the group permissions of the same directory. Which of the following commands would satisfy this requirement?
a)
A. chmod o+s <directory>
b)
B. chmod u+s <directory>
c)
C. chmod +s <directory>
d)
D. chmod g+s <directory>