Courseiva
File Sharing and SambamediumMultiple SelectObjective-mapped

LPIC-2 File Sharing and Samba Practice Question

Which TWO of the following are common symptoms of a misconfigured winbind service when Samba is joined to an Active Directory domain?

⚠ Common exam trap

It's easy for candidates to assume `wbinfo -u` and `getent passwd` should always return the same results, but they do not realize that `wbinfo` bypasses NSS and directly queries winbind, while `getent` relies on the NSS configuration.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

`getent passwd` does not list domain users.

When winbind is misconfigured, the Name Service Switch (NSS) module may not be properly set up to query winbind for domain users. This means `getent passwd` will not return domain users even if winbind itself can enumerate them via `wbinfo -u`. The core issue is that NSS is not configured to use the `winbind` source in `/etc/nsswitch.conf`, or the winbind service is not correctly communicating with the NSS subsystem.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • `net ads join` fails with 'access denied'.

    Why it's wrong here

    This is a join-time error, not a winbind symptom.

  • Domain users cannot authenticate via SSH.

    Why it's wrong here

    SSH authentication depends on PAM configuration, not solely on winbind.

  • `getent passwd` does not list domain users.

    Why this is correct

    This indicates winbind NSS module is not working.

  • `wbinfo -u` returns a list of domain users but `getent passwd` does not.

    Why this is correct

    This suggests winbind is running but NSS is misconfigured.

About these practice questions

One of 507 original LPIC-2 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-2 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-2 exam.