LPIC-2 File Sharing and Samba Practice Question
In a Samba domain member server, which file contains the SID to Unix ID mappings?
⚠ Common exam trap
A common mix-up: candidates confuse the `secrets.tdb` file (which stores machine secrets) with the `winbindd_idmap.tdb` file (which stores ID mappings), leading them to select option C incorrectly.
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
✓
/var/lib/samba/winbindd_idmap.tdb
B is correct because Samba domain member servers use the winbindd service to map Windows SIDs to Unix UIDs/GIDs, and these mappings are stored in the `winbindd_idmap.tdb` file located in `/var/lib/samba/`. This TDB (Trivial Database) file maintains the persistent ID mapping database, which is essential for translating between the two security identifier systems.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
/etc/group
Why it's wrong here
Incorrect; this contains Unix groups.
- ✓
/var/lib/samba/winbindd_idmap.tdb
Why this is correct
Correct; this TDB file stores SID-to-UID/GID mappings.
- ✗
/var/lib/samba/private/secrets.tdb
Why it's wrong here
Incorrect; this stores secrets like machine password.
- ✗
/etc/passwd
Why it's wrong here
Incorrect; this contains Unix user accounts, not SID mappings.
Go deeper
Related to this question
About these practice questions
Courseiva writes every LPIC-2 question from scratch — 507 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
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.