LPI 102-500 Practice Test 64
Question 630
A Linux administrator investigates the following system incident: A hardening review uses a remote port scan but never checks the local process that owns the listening socket. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.
- Inspect `ss -tulpen`, `lsof -i`, approved nmap results, service ownership and active firewall rules.
- Combine local `ss` or `lsof` socket ownership checks with authorized nmap testing to identify exposed services and unnecessary listeners.
- Inventory files with SUID or SGID bits using a suitable `find` permission predicate, investigate ownership and remove unnecessary privilege through approved change control.
- Treat every running listener as harmless because a firewall exists and assume a remote port scan alone identifies the owning local daemon reliably.
- Inspect SSH `-L` or `-X` options, effective local bind addresses, target service reachability and both endpoint access controls.
Explanation
Correct Answers
A:Most direct verification evidence: Inspect `ss -tulpen`, `lsof -i`, approved nmap results, service ownership and active firewall rules. Linux principle: A service can bind locally or on external interfaces regardless of the operator's assumptions; local listener inventory and external reachability provide complementary evidence.
B:Recommended administrative action: Combine local `ss` or `lsof` socket ownership checks with authorized nmap testing to identify exposed services and unnecessary listeners. Linux principle: A service can bind locally or on external interfaces regardless of the operator's assumptions; local listener inventory and external reachability provide complementary evidence.
Incorrect Answers
C:This alternative addresses Auditing privileged SUID and SGID executables, not the specific issue of Discovering exposed sockets and services: Inventory files with SUID or SGID bits using a suitable `find` permission predicate, investigate ownership and remove unnecessary privilege through approved change control. Linux principle: A service can bind locally or on external interfaces regardless of the operator's assumptions; local listener inventory and external reachability provide complementary evidence. Appropriate response: Combine local `ss` or `lsof` socket ownership checks with authorized nmap testing to identify exposed services and unnecessary listeners. Root-cause evidence: Inspect `ss -tulpen`, `lsof -i`, approved nmap results, service ownership and active firewall rules. Independent acceptance: Only approved interfaces and ports remain reachable, with a recorded accountable owner for each listening network service.
D:This shortcut is unsafe for the present Linux issue: Treat every running listener as harmless because a firewall exists and assume a remote port scan alone identifies the owning local daemon reliably. A service can bind locally or on external interfaces regardless of the operator's assumptions; local listener inventory and external reachability provide complementary evidence.
E:That option would inspect SSH `-L` or `-X` options, effective local bind addresses, target service reachability and both endpoint access controls, but it addresses a different concern. A service can bind locally or on external interfaces regardless of the operator's assumptions; local listener inventory and external reachability provide complementary evidence.
Question 631
On a production Linux workstation or server, a technician observes: An account audit finds `/etc/shadow` world-readable after a rushed migration, exposing password hashes to ordinary users. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.
- Choose supported SSH local or remote port forwarding for a specified TCP endpoint, or SSH X11 forwarding for graphical applications, with approved bind and host-key restrictions.
- Verify whether a specific legacy daemon actually supports TCP wrappers and use supported firewalls or service-native authorization for current host access control.
- Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads.
- Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose.
Explanation
Correct Answer
C:Recommended administrative action: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
Incorrect Answers
A:This alternative addresses SSH port forwarding and X11 tunnel purpose, not the specific issue of Shadow password file permissions and hash protection: Choose supported SSH local or remote port forwarding for a specified TCP endpoint, or SSH X11 forwarding for graphical applications, with approved bind and host-key restrictions. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
B: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. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
D:This shortcut is unsafe for the present Linux issue: Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose. It cannot establish a safe correction. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
Question 632
During an LPIC-1 practice lab, the operator encounters this condition: An account audit finds `/etc/shadow` world-readable after a rushed migration, exposing password hashes to ordinary users. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.
- SSH tunnels securely carry selected traffic over an authenticated SSH connection; local `-L` forwards TCP endpoints, while `-X` supports the separate X11 application model.
- /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
- SUID and SGID execution bits can change effective identity or group during program execution, so unexpected privileged binaries enlarge security risk.
- Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose.
Explanation
Correct Answer
B:Relevant Linux operating principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
Incorrect Answers
A:This alternative addresses SSH port forwarding and X11 tunnel purpose, not the specific issue of Shadow password file permissions and hash protection: 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: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
C:This alternative addresses Auditing privileged SUID and SGID executables, not the specific issue of Shadow password file permissions and hash protection: SUID and SGID execution bits can change effective identity or group during program execution, so unexpected privileged binaries enlarge security risk. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
D:This shortcut is unsafe for the present Linux issue: Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
Question 633
A helpdesk escalation describes this Linux behavior: An account audit finds `/etc/shadow` world-readable after a rushed migration, exposing password hashes to ordinary users. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.
- Inspect key file permissions, the authorized_keys contents, ssh -v authentication trace and `ssh-add -l` for an intended agent.
- Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose.
- Inspect `ss -tulpen`, `lsof -i`, approved nmap results, service ownership and active firewall rules.
- Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact.
Explanation
Correct Answer
D:Most direct verification evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
Incorrect Answers
A:That option would inspect key file permissions, the authorized_keys contents, ssh -v authentication trace and `ssh-add -l` for an intended agent, but it addresses a different concern. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
B:This shortcut is unsafe for the present Linux issue: Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
C:This alternative addresses Discovering exposed sockets and services, not the specific issue of Shadow password file permissions and hash protection: Inspect `ss -tulpen`, `lsof -i`, approved nmap results, service ownership and active firewall rules.
Question 634
An operations handoff identifies this problem: An account audit finds `/etc/shadow` world-readable after a rushed migration, exposing password hashes to ordinary users. 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.
- Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose.
- Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
- Only approved privileged executables retain special mode bits and exceptions have documented justification and monitoring.
Explanation
Correct Answer
C:Observable acceptance criterion: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
Incorrect Answers
A:This alternative addresses GnuPG signing versus encryption and key revocation, not the specific issue of Shadow password file permissions and hash protection: Authorized recipients can decrypt protected content and independent verifiers can validate valid signatures or reject revoked keys. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
B:This shortcut is unsafe for the present Linux issue: Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose. It cannot establish a safe correction. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
D:This alternative addresses Auditing privileged SUID and SGID executables, not the specific issue of Shadow password file permissions and hash protection: Only approved privileged executables retain special mode bits and exceptions have documented justification and monitoring. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
Question 635
A team maintaining a Linux host reports: An account audit finds `/etc/shadow` world-readable after a rushed migration, exposing password hashes to ordinary users. Which misleading assumption MOST directly contributes to this failure and should be rejected? Select ONE best answer.
- Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose.
- Expose the internal service to every interface as a substitute for an SSH tunnel and assume -X forwards arbitrary TCP services exactly like -L.
- Use `ALL=(ALL) NOPASSWD: ALL` for every support user and edit sudoers blindly with no syntax validation.
- Assume executable files cannot gain extra privilege from mode bits and that a standard ls without permission details is sufficient for a SUID audit.
Explanation
Correct Answer
A:Reject this specific misconception: Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose. It incorrectly assumes behavior that conflicts with the observed Linux conditions.
Incorrect Answers
B:This alternative addresses SSH port forwarding and X11 tunnel purpose, not the specific issue of Shadow password file permissions and hash protection: Expose the internal service to every interface as a substitute for an SSH tunnel and assume -X forwards arbitrary TCP services exactly like -L. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
C:That option would use `ALL=(ALL) NOPASSWD: ALL` for every support user and edit sudoers blindly with no syntax validation, but it addresses a different concern. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
D: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. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
Question 636
While verifying a Linux change request, an engineer finds: A technician attempts to copy password hash fields into `/etc/passwd` to simplify account synchronization between two systems. Which administrative step is the MOST appropriate way to resolve this issue? Select ONE best answer.
- Grant narrowly scoped sudo privileges using visudo or a validated sudoers.d fragment, then test as the intended identity.
- Verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification.
- Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads.
- Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose.
Explanation
Correct Answer
C:Recommended administrative action: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads.
Incorrect Answers
A: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. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
B:That option would verify host-key fingerprints through a trusted channel and provision distinct server host keys for each machine, updating client trust only after authorized verification, but it addresses a different concern. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
D:This shortcut is unsafe for the present Linux issue: Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose. It cannot establish a safe correction. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
Question 637
A Linux administrator investigates the following system incident: A technician attempts to copy password hash fields into `/etc/passwd` to simplify account synchronization between two systems. Which Linux behavior or technical principle BEST explains why the issue occurs? Select ONE best answer.
- /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
- SSH tunnels securely carry selected traffic over an authenticated SSH connection; local `-L` forwards TCP endpoints, while `-X` supports the separate X11 application model.
- Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose.
- sudo applies policy to which user may execute particular commands as another identity; unrestricted root privileges and unvalidated configuration edits are avoidable risks.
Explanation
Correct Answer
A:Relevant Linux operating principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
Incorrect Answers
B:This alternative addresses SSH port forwarding and X11 tunnel purpose, not the specific issue of Shadow password file permissions and hash protection: 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: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
C:This shortcut is unsafe for the present Linux issue: Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
D:This alternative addresses Sudoers least privilege and safe editing, not the specific issue of Shadow password file permissions and hash protection: sudo applies policy to which user may execute particular commands as another identity; unrestricted root privileges and unvalidated configuration edits are avoidable risks. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
Question 638
On a production Linux workstation or server, a technician observes: A technician attempts to copy password hash fields into `/etc/passwd` to simplify account synchronization between two systems. Which evidence or command result MOST directly tests the suspected root cause? Select ONE best answer.
- Inspect SSH `-L` or `-X` options, effective local bind addresses, target service reachability and both endpoint access controls.
- Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact.
- Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose.
- Run `visudo -c`, inspect `/etc/sudoers` and `/etc/sudoers.d`, and use a controlled `sudo -l` test as the affected account.
Explanation
Correct Answer
B:Most direct verification evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact.
Incorrect Answers
A:That option would inspect SSH `-L` or `-X` options, effective local bind addresses, target service reachability and both endpoint access controls, but it addresses a different concern. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
C:This shortcut is unsafe for the present Linux issue: Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose. It cannot establish a safe correction. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
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. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
Question 639
During an LPIC-1 practice lab, the operator encounters this condition: A technician attempts to copy password hash fields into `/etc/passwd` to simplify account synchronization between two systems. Which observed outcome BEST confirms a successful and properly scoped correction? Select ONE best answer.
- Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose.
- Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
- The unwanted port no longer accepts connections after reboot while approved system services remain available.
- The audit identifies accurate session ownership and resource-heavy workloads obey documented per-account limits without affecting unrelated users.
Explanation
Correct Answer
B:Observable acceptance criterion: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
Incorrect Answers
A:This shortcut is unsafe for the present Linux issue: Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
C:This alternative addresses Disabling unnecessary systemd and socket-activated services, not the specific issue of Shadow password file permissions and hash protection: The unwanted port no longer accepts connections after reboot while approved system services remain available. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
D:This alternative addresses Login history, active sessions and process limits, not the specific issue of Shadow password file permissions and hash protection: The audit identifies accurate session ownership and resource-heavy workloads obey documented per-account limits without affecting unrelated users. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd. Appropriate response: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Root-cause evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Independent acceptance: Ordinary users cannot read password hashes and the system still resolves account and login metadata correctly.
Question 640
A helpdesk escalation describes this Linux behavior: A technician attempts to copy password hash fields into `/etc/passwd` to simplify account synchronization between two systems. Which TWO complementary steps provide the best corrective action and its most direct diagnostic verification? Select TWO answers.
- Run `visudo -c`, inspect `/etc/sudoers` and `/etc/sudoers.d`, and use a controlled `sudo -l` test as the affected account.
- Identify the listening service and any associated systemd .socket activation unit, then disable or mask unnecessary network entry points according to policy.
- Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact.
- Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose.
- Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads.
Explanation
Correct Answers
C:Most direct verification evidence: Inspect `stat /etc/shadow`, attempt an unprivileged read, verify accounts through supported tools and review any unauthorized disclosure impact. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
E:Recommended administrative action: Restore restricted shadow database ownership and permissions using distribution-supported account tools and protect password hashes from general reads. Linux principle: /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
Incorrect Answers
A:This alternative addresses Sudoers least privilege and safe editing, not the specific issue of Shadow password file permissions and hash protection: Run `visudo -c`, inspect `/etc/sudoers` and `/etc/sudoers.d`, and use a controlled `sudo -l` test as the affected account.
B: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. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.
D:This shortcut is unsafe for the present Linux issue: Make `/etc/shadow` readable by all users and place password hashes into `/etc/passwd` because hashed values are harmless to disclose. /etc/shadow exists to separate sensitive hashed password and aging data from the broadly readable identity fields of /etc/passwd.