nerdexam
CompTIA

XK0-005 · Question #386

A user reported issues when trying to log into a Linux server. The following outputs were received: Given the outputs above, which of the following is the reason the user is unable to log in to the…

The correct answer is B. User1 is in the incorrect group. Without the provided outputs, the most plausible scenario for a user being unable to log in due to being in an 'incorrect group' often involves SSH server configuration restricting login to specific user groups.

Troubleshooting

Question

A user reported issues when trying to log into a Linux server. The following outputs were received:

Given the outputs above, which of the following is the reason the user is unable to log in to the server?

Options

  • AUser1 needs to set a long password.
  • BUser1 is in the incorrect group.
  • CThe user1 shell assignment is incorrect.
  • DThe user1 password is expired.

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    73% (22)
  • C
    13% (4)
  • D
    10% (3)

Why each option

Without the provided outputs, the most plausible scenario for a user being unable to log in due to being in an 'incorrect group' often involves SSH server configuration restricting login to specific user groups.

AUser1 needs to set a long password.

Password length issues would typically manifest as an inability to set a password or a specific authentication error, not directly related to group membership.

BUser1 is in the incorrect group.Correct

This implies that the missing outputs would indicate a group-based restriction preventing login, such as an `AllowGroups` directive in `/etc/ssh/sshd_config` where `user1` is not a member of the permitted groups.

CThe user1 shell assignment is incorrect.

An incorrect shell assignment (e.g., `/bin/false`) would prevent interactive login but is a shell-specific issue, not a group issue.

DThe user1 password is expired.

An expired password would result in a specific 'password expired' message, which is distinct from a group-based denial.

Concept tested: Linux user management - group-based access control

Source: https://man.archlinux.org/man/sshd_config.5.en

Topics

#User Management#Access Control#Authentication#Login Troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice