LPI 102-500 Practice Test 67
Question 660
During an LPIC-1 practice lab, the operator encounters this condition: An engineer studies TCP wrappers only as a universal current firewall replacement without checking which service honors those files. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.
- Inspect daemon documentation, linked support if relevant, actual listener behavior and an approved remote denied-client test.
- Verify whether a specific legacy daemon actually supports TCP wrappers and use supported firewalls or service-native authorization for current host access control.
- Run carefully scoped `find` checks for -perm -4000 and -perm -2000, review file ownership, ACLs, package provenance and intended use.
- Assume any text written to /etc/hosts.deny automatically filters every new TCP listener on modern Linux hosts.
- Grant narrowly scoped sudo privileges using visudo or a validated sudoers.d fragment, then test as the intended identity.
Explanation
Correct Answers
A:Most direct verification evidence: Inspect daemon documentation, linked support if relevant, actual listener behavior and an approved remote denied-client test. Linux principle: hosts.allow and hosts.deny are legacy libwrap mechanisms that affect only applications using them; modern services may ignore these files entirely.
B:Recommended administrative action: Verify whether a specific legacy daemon actually supports TCP wrappers and use supported firewalls or service-native authorization for current host access control. Linux principle: hosts.allow and hosts.deny are legacy libwrap mechanisms that affect only applications using them; modern services may ignore these files entirely.
Incorrect Answers
C:That option would run carefully scoped `find` checks for -perm -4000 and -perm -2000, review file ownership, ACLs, package provenance and intended use, but it addresses a different concern. Hosts.allow and hosts.deny are legacy libwrap mechanisms that affect only applications using them; modern services may ignore these files entirely.
D:This shortcut is unsafe for the present Linux issue: Assume any text written to /etc/hosts.deny automatically filters every new TCP listener on modern Linux hosts. hosts.allow and hosts.deny are legacy libwrap mechanisms that affect only applications using them; modern services may ignore these files entirely.
E:That option would grant narrowly scoped sudo privileges using visudo or a validated sudoers.d fragment, then test as the intended identity, but it addresses a different concern. Hosts.allow and hosts.deny are legacy libwrap mechanisms that affect only applications using them; modern services may ignore these files entirely.
Question 661
A helpdesk escalation describes this Linux behavior: A new server presents an unexpected SSH host-key fingerprint and a technician removes known_hosts checks instead of investigating the identity change. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.
- Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification.
- Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone.
- Install only the user's public key in the authorized_keys file, protect the private key and use ssh-agent or ssh-add when appropriate for approved key handling.
- Verify whether a specific legacy daemon actually supports TCP wrappers and use supported firewalls or service-native authorization for current host access control.
Explanation
Correct Answer
A:Recommended administrative action: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification.
Incorrect Answers
B:That option would disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
C:That option would install only the user's public key in the authorized_keys file, protect the private key and use ssh-agent or ssh-add when appropriate for approved key handling, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
D:That option would verify whether a specific legacy daemon actually supports TCP wrappers and use supported firewalls or service-native authorization for current host access control, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Question 662
An operations handoff identifies this problem: A new server presents an unexpected SSH host-key fingerprint and a technician removes known_hosts checks instead of investigating the identity change. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.
- SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
- Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone.
- SUID and SGID execution bits can change effective identity or group during program execution, so unexpected privileged binaries enlarge security risk.
- SSH tunnels securely carry selected traffic over an authenticated SSH connection; local `-L` forwards TCP endpoints, while `-X` supports the separate X11 application model.
Explanation
Correct Answer
A:Relevant Linux operating principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Incorrect Answers
B:That option would disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone, but it addresses a different concern. Appropriate response: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification.
C:This alternative addresses Auditing privileged SUID and SGID executables, not the specific issue of SSH server host keys and client trust decisions: SUID and SGID execution bits can change effective identity or group during program execution, so unexpected privileged binaries enlarge security risk. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys. Appropriate response: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. Root-cause evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. Independent acceptance: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
D:This alternative addresses SSH port forwarding and X11 tunnel purpose, not the specific issue of SSH server host keys and client trust decisions: SSH tunnels securely carry selected traffic over an authenticated SSH connection; local `-L` forwards TCP endpoints, while `-X` supports the separate X11 application model. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys. Appropriate response: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. Root-cause evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. Independent acceptance: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
Question 663
A team maintaining a Linux host reports: A new server presents an unexpected SSH host-key fingerprint and a technician removes known_hosts checks instead of investigating the identity change. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.
- Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry.
- Inspect `w`, `who`, `last`, `ulimit -a`, controlled process execution and any persistent limits configuration.
- Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone.
- Run `visudo -c`, inspect `/etc/sudoers` and `/etc/sudoers.d`, and use a controlled `sudo -l` test as the affected account.
Explanation
Correct Answer
A:Most direct verification evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry.
Incorrect Answers
B:That option would inspect `w`, `who`, `last`, `ulimit -a`, controlled process execution and any persistent limits configuration, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
C:This shortcut is unsafe for the present Linux issue: Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone. It cannot establish a safe correction.
D:That option would run `visudo -c`, inspect `/etc/sudoers` and `/etc/sudoers.d`, and use a controlled `sudo -l` test as the affected account, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Question 664
While verifying a Linux change request, an engineer finds: A new server presents an unexpected SSH host-key fingerprint and a technician removes known_hosts checks instead of investigating the identity change. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.
- Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone.
- Only approved privileged executables retain special mode bits and exceptions have documented justification and monitoring.
- Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
- Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
Explanation
Correct Answer
C:Observable acceptance criterion: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
Incorrect Answers
A:This shortcut is unsafe for the present Linux issue: Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
B:This alternative addresses Auditing privileged SUID and SGID executables, not the specific issue of SSH server host keys and client trust decisions: Only approved privileged executables retain special mode bits and exceptions have documented justification and monitoring. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys. Appropriate response: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. Root-cause evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. Independent acceptance: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
D:This alternative addresses Shadow password file permissions and hash protection, not the specific issue of SSH server host keys and client trust decisions: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys. Appropriate response: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. Root-cause evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. Independent acceptance: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
Question 665
A Linux administrator investigates the following system incident: A new server presents an unexpected SSH host-key fingerprint and a technician removes known_hosts checks instead of investigating the identity change. Which misleading assumption MOST directly contributes to this failure and should be rejected? Select ONE best answer.
- Assume executable files cannot gain extra privilege from mode bits and that a standard ls without permission details is sufficient for a SUID audit.
- Assume `systemctl stop old.service` always removes every socket-activated listener and that hiding an application shortcut disables its daemon.
- Treat every running listener as harmless because a firewall exists and assume a remote port scan alone identifies the owning local daemon reliably.
- Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone.
Explanation
Correct Answer
D:Reject this specific misconception: Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone. It incorrectly assumes behavior that conflicts with the observed Linux conditions.
Incorrect Answers
A:That option would assume executable files cannot gain extra privilege from mode bits and that a standard ls without permission details is sufficient for a SUID audit, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
B:That option would assume `systemctl stop old.service` always removes every socket-activated listener and that hiding an application shortcut disables its daemon, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
C:That option would treat every running listener as harmless because a firewall exists and assume a remote port scan alone identifies the owning local daemon reliably, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Question 666
On a production Linux workstation or server, a technician observes: A cloned image reuses the source server's private SSH host keys on multiple systems, confusing client identity verification. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.
- Identify the listening service and any associated systemd .socket activation unit, then disable or mask unnecessary network entry points according to policy.
- Grant narrowly scoped sudo privileges using visudo or a validated sudoers.d fragment, then test as the intended identity.
- Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone.
- Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification.
Explanation
Correct Answer
D:Recommended administrative action: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Incorrect Answers
A:That option would identify the listening service and any associated systemd .socket activation unit, then disable or mask unnecessary network entry points according to policy, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
B:That option would grant narrowly scoped sudo privileges using visudo or a validated sudoers.d fragment, then test as the intended identity, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
C:This shortcut is unsafe for the present Linux issue: Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Question 667
During an LPIC-1 practice lab, the operator encounters this condition: A cloned image reuses the source server's private SSH host keys on multiple systems, confusing client identity verification. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.
- Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone.
- SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
- Encryption protects content for holders of the corresponding decryption key, whereas a digital signature demonstrates origin and integrity without concealing the data.
- /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
Explanation
Correct Answer
B:Relevant Linux operating principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Incorrect Answers
A:This shortcut is unsafe for the present Linux issue: Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone. It cannot establish a safe correction. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
C:This alternative addresses GnuPG signing versus encryption and key revocation, not the specific issue of SSH server host keys and client trust decisions: Encryption protects content for holders of the corresponding decryption key, whereas a digital signature demonstrates origin and integrity without concealing the data. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys. Appropriate response: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. Root-cause evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. Independent acceptance: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
D:This alternative addresses Shadow password file permissions and hash protection, not the specific issue of SSH server host keys and client trust decisions: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys. Appropriate response: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. Root-cause evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. Independent acceptance: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
Question 668
A helpdesk escalation describes this Linux behavior: A cloned image reuses the source server's private SSH host keys on multiple systems, confusing client identity verification. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.
- Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry.
- Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone.
- Run `visudo -c`, inspect `/etc/sudoers` and `/etc/sudoers.d`, and use a controlled `sudo -l` test as the affected account.
- Inspect `ss -tulpen`, `lsof -i`, approved nmap results, service ownership and active firewall rules.
Explanation
Correct Answer
A:Most direct verification evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Incorrect Answers
B:This shortcut is unsafe for the present Linux issue: Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone. It cannot establish a safe correction. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys. Appropriate response: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. Root-cause evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. Independent acceptance: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
C:This alternative addresses Sudoers least privilege and safe editing, not the specific issue of SSH server host keys and client trust decisions: Run `visudo -c`, inspect `/etc/sudoers` and `/etc/sudoers.d`, and use a controlled `sudo -l` test as the affected account.
D:That option would inspect `ss -tulpen`, `lsof -i`, approved nmap results, service ownership and active firewall rules, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Question 669
An operations handoff identifies this problem: A cloned image reuses the source server's private SSH host keys on multiple systems, confusing client identity verification. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.
- Authorized recipients can decrypt protected content and independent verifiers can validate valid signatures or reject revoked keys.
- Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
- Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
- Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone.
Explanation
Correct Answer
C:Observable acceptance criterion: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Incorrect Answers
A:This alternative addresses GnuPG signing versus encryption and key revocation, not the specific issue of SSH server host keys and client trust decisions: Authorized recipients can decrypt protected content and independent verifiers can validate valid signatures or reject revoked keys. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys. Appropriate response: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. Root-cause evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. Independent acceptance: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
B:This alternative addresses Shadow password file permissions and hash protection, not the specific issue of SSH server host keys and client trust decisions: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys. Appropriate response: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. Root-cause evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. Independent acceptance: Clients recognize the correct unique server identity and unexpected key changes trigger investigation rather than silent acceptance.
D:This shortcut is unsafe for the present Linux issue: Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Question 670
A team maintaining a Linux host reports: A cloned image reuses the source server's private SSH host keys on multiple systems, confusing client identity verification. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.
- Inspect `systemctl list-sockets`, service and socket unit states, live listeners and a controlled remote connection attempt.
- Grant narrowly scoped sudo privileges using visudo or a validated sudoers.d fragment, then test as the intended identity.
- Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry.
- Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification.
- Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone.
Explanation
Correct Answers
C:Most direct verification evidence: Compare server host key fingerprint to an approved inventory, inspect /etc/ssh/ssh_host_* files and examine the user's known_hosts entry. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
D:Recommended administrative action: Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification. Linux principle: SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
Incorrect Answers
A:That option would inspect `systemctl list-sockets`, service and socket unit states, live listeners and a controlled remote connection attempt, but it addresses a different concern. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.
B:This alternative addresses Sudoers least privilege and safe editing, not the specific issue of SSH server host keys and client trust decisions: Grant narrowly scoped sudo privileges using visudo or a validated sudoers.d fragment, then test as the intended identity.
E:This shortcut is unsafe for the present Linux issue: Disable strict host-key checking permanently and copy one VM image's SSH host private keys unchanged to every clone. SSH server host keys identify the remote server and protect against impersonation; host keys are different from user public-key authentication keys.