CompTIA XK0-005クラムメディア & XK0-005資料的中率XK0-005の有用なテストガイド資料は、最も重要な情報を最も簡単な方法でクライアントに提示するため、XK0-005の有用なテストガイドを学習するための時間とエネルギーはほとんど必要ありません。クライアントは、テストの学習と準備に20〜30時間しかかかりません。仕事や学習などで忙しい人にとっては、これは良いニュースです。なぜなら、テストの準備に十分な時間がないことを心配する必要がなく、主なことをゆっくりとできるからです。 XK0-005学習実践ガイドをご覧ください。ですから、XK0-005試験の教材の大きな利点であり、クライアントにとって非常に便利です。 CompTIA Linux+ Certification Exam 認定 XK0-005 試験問題 (Q490-Q495):質問 # 490
A Linux system is failing to boot with the following error:
Which of the following actions will resolve this issue? (Choose two.)
A. Boot the system on a LiveCD/ISO.
B. Interrupt the boot process in the GRUB menu and add rescue to the kernel line.
C. Interrupt the boot process in the GRUB menu and add single to the kernel line.
D. Execute grub-install --root-directory=/mnt and reboot.
E. Fix the partition modifying /etc/default/grub and reboot.
F. Execute grub-install /dev/sdX and reboot.
正解:A、F
解説:
The administrator should do the following two actions to resolve the issue:
* Boot the system on a LiveCD/ISO. This is necessary to access the system and repair the boot loader. A LiveCD/ISO is a bootable media that contains a Linux distribution that can run without installation. The administrator can boot the system from the LiveCD/ISO and mount the root partition of the system to a temporary directory, such as /mnt.
* Execute grub-install /dev/sdX and reboot. This will reinstall the GRUB boot loader to the disk device, where sdX is the device name of the disk, such as sda or sdb. The GRUB boot loader is a program that runs when the system is powered on and allows the user to choose which operating system or kernel to boot. The issue is caused by a corrupted or missing GRUB boot loader, which prevents the system from booting. The command grub-install will restore the GRUB boot loader and fix the issue.
The other options are incorrect because they either do not fix the boot loader (interrupt the boot process in the GRUB menu or fix the partition modifying /etc/default/grub) or do not use the correct syntax (grub-install -- root-directory=/mnt instead of grub-install /dev/sdX or rescue or single instead of recovery in the GRUB menu). References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 8: Managing the Linux Boot Process, pages 265-266.
質問 # 491
A systems administrator needs to list the contents of archive.tar.xz. Which of the following commands will list the files?
A. tar ddf archive.tar.xz
B. tar jvf archive.tar.xz
C. tar xzf archive.tar.xz
D. tar tJf archive.tar.xz
正解:D
質問 # 492
User1 is a member of the accounting group. Members of this group need to be able to execute but not make changes to a script maintained by User2. The script should not be accessible to other users or groups. Which of the following will give proper access to the script?
A. chown user2:accounting script.sh
chmod u+x script.sh
B. chown accounting:user1 script.sh
chmod 057 script.sh
C. chown user1:accounting script.sh
chmod 777 script.sh
D. chown user2:accounting script.sh
chmod 750 script.sh
正解:D
解説:
Explanation
The commands that will give proper access to the script are:
* chown user2:accounting script.sh: This command will change the ownership of the script to user2 as the
* owner and accounting as the group. The chown command is a tool for changing the owner and group of files and directories on Linux systems. The user2:accounting is the user and group name that the command should assign to the script. The script.sh is the name of the script that the command should modify. The command chown user2:accounting script.sh will ensure that user2 is the owner of the script and accounting is the group of the script, which will allow user2 to maintain the script and the accounting group to access the script.
* chmod 750 script.sh: This command will change the permissions of the script to 750, which means read, write, and execute for the owner; read and execute for the group; and no access for others.
The chmod command is a tool for changing the permissions of files and directories on Linux systems.
The permissions are represented by three digits in octal notation, where each digit corresponds to the owner, group, and others. Each digit can have a value from 0 to 7, where each value represents a combination of read, write, and execute permissions. The 750 is the permission value that the command should assign to the script. The script.sh is the name of the script that the command should modify. The command chmod 750 script.sh will ensure that only the owner and the group can execute the script, but not make changes to it, and that the script is not accessible to other users or groups.
The commands that will give proper access to the script are chown user2:accounting script.sh and chmod 750 script.sh. This is the correct answer to the question. The other options are incorrect because they either do not give proper access to the script (chown user1:accounting script.sh or chown accounting:user1 script.sh) or do not change the permissions of the script (chmod 777 script.sh or chmod u+x script.sh). References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 11: Managing File Permissions and Ownership, pages
346-348.
質問 # 493
An administrator transferred a key for SSH authentication to a home directory on a remote server. The key file was moved to .ssh/authorized_keys location in order to establish SSH connection without a password.
However, the SSH command still asked for the password. Given the following output:
Which of the following commands would resolve the issue?
A. ssh_keygen -t rsa -o .ssh/authorized_keys
B. chown root:root .ssh/authorized_keys
C. chmod 600 .ssh/authorized_keys
D. restorecon .ssh/authorized_keys
正解:C
解説:
The command that would resolve the issue is chmod 600 .ssh/authorized_keys. This command will change the permissions of the .ssh/authorized_keys file to 600, which means that only the owner of the file can read and write it. This is necessary for SSH key authentication to work properly, as SSH will refuse to use a key file that is accessible by other users or groups for security reasons. The output of ls -l shows that currently the .ssh
/authorized_keys file has permissions of 664, which means that both the owner and group can read and write it, and others can read it.
The other options are not correct commands for resolving the issue. The restorecon .ssh/authorized_keys command will restore the default SELinux security context for the .ssh/authorized_keys file, but this will not change its permissions or ownership. The ssh_keygen -t rsa -o .ssh/authorized_keys command is invalid because ssh_keygen is not a valid command (the correct command is ssh-keygen), and the -o option is used to specify a new output format for the key file, not the output file name. The chown root:root .ssh
/authorized_keys command will change the owner and group of the .ssh/authorized_keys file to root, but this will not change its permissions or make it accessible by the user who wants to log in with SSH key authentication. References: How to Use Public Key Authentication with SSH; chmod(1) - Linux manual page
質問 # 494
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?