Weekend Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Last Attempt XK0-005 Questions

Page: 3 / 35
Total 470 questions

CompTIA Linux+ Exam Questions and Answers

Question 9

A systems administrator changed the file permissions on the myfile file:

$ sudo chmod g+w myfile

$ ls -l myfile

-rwxrwxr-x 1 admin editors C 2022-10-13 10:45 myfile

Then the administrator added an existing user test to the editors group:

$ sudo usermod -aG editors test

However, the user test is still unable to edit the file. Which of the following solutions will fix this issue?

Options:

A.

The user test needs to log out and log back in before editing the myfile file.

B.

The file is only writable by the root user, and the user test needs root permissions.

C.

The group for the user test needs to be reloaded by running sudo source /etc/group.

D.

In order to edit the file, additional permissions are required that the user test does not have.

Question 10

The development team wants to prevent a file from being modified by all users in a Linux system, including the root account. Which of the following commands can be used to accomplish this objective?

Options:

A.

chmod / app/conf/file

B.

setenforce / app/ conf/ file

C.

chattr +i /app/conf/file

D.

chmod 0000 /app/conf/file

Question 11

NO: 55:

An administrator made a change to a system's network configuration. Which of the following best represents what the administrator should do to have the new configuration take effect?

Options:

A.

systemctl restart networkd

B.

systemctl enable networkd

C.

systemctl status networkd

D.

systemctl isolate networkd

Question 12

A systems administrator is tasked with configuring a repository on an RPM-based Linux system. Which of the following need to be reviewed and modified? (Select two).

Options:

A.

/etc/yum.conf

B.

/etc/apt/sources.list.d

C.

/etc/pam.d

D.

/etc/apt.conf

E.

/etc/yum.repos.d

F.

/etc/ssh/ssh_config

Page: 3 / 35
Total 470 questions