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.
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)- A3% (1)
- B73% (22)
- C13% (4)
- D10% (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.
Password length issues would typically manifest as an inability to set a password or a specific authentication error, not directly related to group membership.
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.
An incorrect shell assignment (e.g., `/bin/false`) would prevent interactive login but is a shell-specific issue, not a group issue.
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
Community Discussion
No community discussion yet for this question.