Question 650
SSH accepts the server connection but rejects the user's public key; authorized_keys is correct. Which file-protection issue should be checked?
- KbdInteractiveAuthentication and PAM settings
- Source-restricted SSH firewall policy
- Present the intermediate CA chain
- Unsafe home or .ssh permissions under StrictModes
- Renew and deploy the correct certificate chain
- Private CA trust anchor on clients
Explanation
Correct Answer
D:OpenSSH may refuse key authentication if relevant files or directories are writable by untrusted users. Verify ownership and restrictive permissions.
Incorrect Answers
A:Disabling PasswordAuthentication alone may leave other interactive authentication methods active; the administrator instead needs fixing SSH key rejection due to unsafe file modes; this option serves a different purpose.
B:A firewall may drop inbound packets by source or interface; it answers a neighboring question rather than fixing SSH key rejection due to unsafe file modes.
C:Even a trusted root may not be connected to the leaf without the right intermediate certificates; that changes a different part of the system; the requested outcome is fixing SSH key rejection due to unsafe file modes.
E:Expiry checks reject otherwise functional TLS services after the validity window ends; it will not provide fixing SSH key rejection due to unsafe file modes under these conditions.
F:Clients need the internal issuing chain anchored in an approved trust store; using it would leave fixing SSH key rejection due to unsafe file modes unresolved.
Question 651
A script file is readable and has a correct shebang but cannot be executed directly. Which missing mode may explain it?
- Execute access on each parent directory
- Existing process retained its original group credentials
- Sticky bit on shared directory
- File execute permission
Explanation
Correct Answer
D:Direct execution requires executable permission and a usable interpreter path. Reading the script with an interpreter explicitly is a separate action.
Incorrect Answers
A:Path traversal requires search permission on every ancestor component; using it would leave resolving direct execution denied by mode bits unresolved.
B:Group memberships are captured when credentials are established for a process; the requirement is resolving direct execution denied by mode bits, outside the effect of this choice.
C:Write and execute on a directory normally permit removing entries regardless of file ownership; it does not deliver resolving direct execution denied by mode bits, which is decisive in this scenario.
Question 652
A confined service sees a file type httpd_sys_content_t but needs to write application uploads. Which likely issue should be evaluated?
- Full filesystem relabel to policy defaults
- SELinux type permits reads but not the requested writes
- Applicable SELinux network-connect boolean
- Relevant AVC denials and file contexts
Explanation
Correct Answer
B:SELinux types distinguish read-only content from writable service data. Correctly labeling the specific writable path is safer than broad policy bypass.
Incorrect Answers
A:Files created without labeling enforcement may need contexts rebuilt; its scope differs from distinguishing read-only and writable SELinux types, so it cannot meet the stated requirement.
C:Policies can restrict which processes initiate outbound connections; the administrator instead needs distinguishing read-only and writable SELinux types; this option serves a different purpose.
D:SELinux may reject access independent of traditional permission bits; it answers a neighboring question rather than distinguishing read-only and writable SELinux types.
Question 653
A service account was added to a supplementary group, but its already-running daemon still lacks access. What is a likely explanation?
- File execute permission
- Execute access on each parent directory
- Existing process retained its original group credentials
- Numeric UID ownership mismatch
Explanation
Correct Answer
C:Group memberships are captured when credentials are established for a process. Restarting or reauthenticating the service can load updated membership.
Incorrect Answers
A:Direct execution requires executable permission and a usable interpreter path; this does not achieve refreshing service group membership after account change on the system described.
B:Path traversal requires search permission on every ancestor component; it will not provide refreshing service group membership after account change under these conditions.
D:Filesystems record numeric IDs, so matching usernames alone is not sufficient after restoring data across hosts; the requirement is refreshing service group membership after account change, outside the effect of this choice.
Question 654
Immediately after an HTTPS certificate rotation, a server fails to start TLS and logs that the certificate and private key values do not match. The SAN, dates and CA chain have already been verified. What is the likely deployment error?
- The private key belongs to a different certificate
- A missing intermediate CA certificate
- An incorrect system clock
- A blocked inbound TCP port
- A missing DNS SAN entry
Explanation
Correct Answer
A:The leaf certificate contains a public key whose matching private key must be loaded by the TLS server. A mismatched key pair prevents successful server authentication setup.
Incorrect Answers
B:An intermediate CA omission can break client path validation, but it does not explain the local server error that the leaf certificate and private key do not correspond.
C:Clock drift can make valid certificates appear expired or not yet valid. It does not change the mathematical relationship between a certificate public key and its private key.
D:A firewall can prevent clients from reaching a listening TLS service. It cannot produce a certificate-versus-private-key mismatch while the service reads its files.
E:An absent SAN name may fail client hostname validation. The SAN was already checked, and identity names do not determine whether the local private key matches the certificate.
Question 655
SSH key authentication was enabled, but password logins still succeed through keyboard-interactive PAM prompts. Which setting requires additional review?
- Unsafe home or .ssh permissions under StrictModes
- Renew and deploy the correct certificate chain
- Private CA trust anchor on clients
- KbdInteractiveAuthentication and PAM settings
- Present the intermediate CA chain
Explanation
Correct Answer
D:Disabling PasswordAuthentication alone may leave other interactive authentication methods active. Confirm the server's complete permitted methods.
Incorrect Answers
A:OpenSSH may refuse key authentication if relevant files or directories are writable by untrusted users; it answers a neighboring question rather than closing alternative SSH password prompt paths.
B:Expiry checks reject otherwise functional TLS services after the validity window ends; that changes a different part of the system; the requested outcome is closing alternative SSH password prompt paths.
C:Clients need the internal issuing chain anchored in an approved trust store; this does not achieve closing alternative SSH password prompt paths on the system described.
E:Even a trusted root may not be connected to the leaf without the right intermediate certificates; using it would leave closing alternative SSH password prompt paths unresolved.
Question 656
A technician temporarily enables permissive mode and the application succeeds, but the root cause remains. What should follow?
- Incorrect inherited or retained SELinux file labels
- Analyze denials and restore enforcing mode after repair
- SELinux type permits reads but not the requested writes
- Full filesystem relabel to policy defaults
Explanation
Correct Answer
B:Permissive behavior helps isolate policy interference but leaves protections unapplied. Implement a precise labeling or policy correction.
Incorrect Answers
A:Moved files can retain labels inconsistent with their new directory policy; the requirement is using permissive mode as a temporary diagnostic, outside the effect of this choice.
C:SELinux types distinguish read-only content from writable service data; the evidence calls for using permissive mode as a temporary diagnostic, not merely this separate operation.
D:Files created without labeling enforcement may need contexts rebuilt; the task involves using permissive mode as a temporary diagnostic, whereas this addresses another subsystem.
Question 657
A connection to SSH port 22 times out from one subnet but works locally. Which network security configuration is suspect?
- KbdInteractiveAuthentication and PAM settings
- Present the intermediate CA chain
- Unsafe home or .ssh permissions under StrictModes
- Source-restricted SSH firewall policy
Explanation
Correct Answer
D:A firewall may drop inbound packets by source or interface. Local successful authentication does not show off-host transport is allowed.
Incorrect Answers
A:Disabling PasswordAuthentication alone may leave other interactive authentication methods active; that is not equivalent to troubleshooting remote SSH filtering by source.
B:Even a trusted root may not be connected to the leaf without the right intermediate certificates; the administrator instead needs troubleshooting remote SSH filtering by source; this option serves a different purpose.
C:OpenSSH may refuse key authentication if relevant files or directories are writable by untrusted users; it answers a neighboring question rather than troubleshooting remote SSH filtering by source.
Question 658
An application can read a file by absolute path only when its parent directory permissions are changed. Which rule explains the issue?
- ACL mask entry
- Existing process retained its original group credentials
- Execute access on each parent directory
- Execute/search permission on the directory
Explanation
Correct Answer
C:Path traversal requires search permission on every ancestor component. Read permission on the target file is not sufficient.
Incorrect Answers
A:The ACL mask caps effective permissions for named users and group-class entries; it will not provide tracing access failure through ancestor directories under these conditions.
B:Group memberships are captured when credentials are established for a process; using it would leave tracing access failure through ancestor directories unresolved.
D:Directory execute grants traversal and pathname lookup, while read permits listing names; it does not deliver tracing access failure through ancestor directories, which is decisive in this scenario.
Question 659
An SSH client with numerous keys loaded in its agent receives “Too many authentication failures” before offering the intended private key. The server’s authentication policy is unchanged. Which client-side command limits the attempted identities to the chosen key?
- ssh -o IdentitiesOnly=yes -i ~/.ssh/id_ed25519 user@server
- ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_ed25519 user@server
- ssh -o PreferredAuthentications=password user@server
- ssh -o ServerAliveInterval=30 -i ~/.ssh/id_ed25519 user@server
- ssh -o ForwardAgent=yes -i ~/.ssh/id_ed25519 user@server
Explanation
Correct Answer
A:IdentitiesOnly=yes restricts OpenSSH to configured identity files instead of offering every identity from the agent. The -i option explicitly chooses the intended identity for this connection.
Incorrect Answers
B:StrictHostKeyChecking controls how the client validates the server host key. Disabling that protection does not stop extra user keys in the agent from being offered and introduces security risk.
C:This preference favors password authentication, abandoning the desired key-based mechanism rather than limiting agent identities to the specified private key.
D:ServerAliveInterval adds encrypted keepalive messages to detect dead sessions. It does not control the list of offered public-key identities during authentication.
E:ForwardAgent enables remote access to the local agent once connected. It does not restrict the keys initially offered to this server and can increase credential exposure.
Question 660
A web application's assets were moved with mv from a different context, and restorecon resolves access failures. What caused the denial?
- Analyze denials and restore enforcing mode after repair
- SELinux type permits reads but not the requested writes
- Verify labeling and existing policy before adding allow rules
- Incorrect inherited or retained SELinux file labels
Explanation
Correct Answer
D:Moved files can retain labels inconsistent with their new directory policy. Restoring proper contexts reestablishes allowed access.
Incorrect Answers
A:Permissive behavior helps isolate policy interference but leaves protections unapplied; that changes a different part of the system; the requested outcome is recognizing stale SELinux labels after moving files.
B:SELinux types distinguish read-only content from writable service data; this does not achieve recognizing stale SELinux labels after moving files on the system described.
C:Generated policy exceptions can overgrant access when the real problem is an incorrect context; it will not provide recognizing stale SELinux labels after moving files under these conditions.