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

CompTIA XK0-005 Based on Real Exam Environment

Page: 13 / 30
Total 401 questions

CompTIA Linux+ Exam Questions and Answers

Question 49

The group owner of the / home/ test directory would like to preserve all group permissions on files created in the directory. Which of the following

commands should the group owner execute?

Options:

A.

chmod g+s /home/test

B.

chgrp test /home/test

C.

chmod 777 /home/test

D.

chown —hR test /home/test

Question 50

A hardened physical Linux system allows regular, unprivileged users to remotely connect to the server using SSH only. No sudo tool has been installed. Which of the following should the Linux administrator use to perform administrative tasks on this host? (Select two).

Options:

A.

Create an SSH key and copy it to the remote server to allow passwordless login

B.

Access the server’s physical console and use the root user's password to log in

C.

Install the telnet server on this system to be able to use a root account

D.

Use the su command and enter the root user’s password

E.

Install the sudo command using the unprivileged user’s account

F.

Add the user to the wheel group

Question 51

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 52

A Linux administrator created a virtual clone of a physical server and would like to remove any existing entries related to SSH keys from outside entities on the virtual clone. Which of the following files should the administrator remove? (Select two).

Options:

A.

~/.ssh/authorized_keys

B.

~/.ssh/known_hosts

C.

/etc/ssh/ssh_config

D.

~/.ssh/config

E.

/etc/ssh/sshd_config

F.

/etc/ssh/ssh_host_rsa_key.pub

Page: 13 / 30
Total 401 questions