easyMultiple ChoiceObjective-mapped
XK0-006 Practice Question: A junior administrator reports that users cannot…
A junior administrator reports that users cannot connect to a file server running Samba. The server is reachable via ping. Logs from the Samba service show: 'smbd: error while loading shared libraries: libgnutls.so.30: cannot open shared object file: No such file or directory'. The administrator confirms the package 'libgnutls' is installed. Which of the following is the most likely cause and solution?
⚠ Common exam trap
The trap here is that candidates see 'package is installed' and assume the library is available, overlooking the need to update the linker cache with `ldconfig` after installation.
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
✓
The library path is not set; run ldconfig.
The error 'cannot open shared object file' indicates that the dynamic linker cannot find the libgnutls.so.30 library at runtime, even though the libgnutls package is installed. Running `ldconfig` updates the linker cache, which rebuilds the mapping of shared library names to their actual file paths, resolving the missing library reference for Samba.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The library path is not set; run ldconfig.
Why this is correct
Correct: ldconfig updates the shared library cache, resolving the missing library error.
- ✗
The system libraries are out of sync; run apt-get update.
Why it's wrong here
Incorrect: apt-get update only updates package lists, not the library cache.
- ✗
The Samba package is corrupted; reinstall Samba.
Why it's wrong here
Incorrect: The package is installed; the issue is the library cache, not corruption.
- ✗
The Samba service is not running; restart it.
Why it's wrong here
Incorrect: The error occurs during startup; restarting will repeat the failure.
Visual reference
Go deeper
Related to this question
About these practice questions
Courseiva writes every XK0-006 question from scratch — 979 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 XK0-006 practice question is part of Courseiva's free CompTIA 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 XK0-006 exam.