20+ practice questions focused on File Sharing and Samba — one of the most tested topics on the Linux Professional Institute Certification Level 2 LPIC-2 exam. Each question includes a detailed explanation so you learn why the right answer is correct.
Start File Sharing and Samba PracticeWhich TWO commands can be used to query a Samba server for its available shares and workgroups?
Explanation: Only `smbclient -L` correctly lists both available shares and workgroups from a Samba server. `nmblookup` is used for NetBIOS name resolution and can query workgroup names but does not list shared resources. The other options either inspect local state or are not applicable.
A company recently upgraded their Samba server from version 4.8 to 4.13. Users report that they can connect to shares but cannot write files. The Samba team verified that the share configuration has 'writable = yes' and the Linux filesystem permissions are correct (777). Which global parameter is most likely causing the issue?
Explanation: Samba 4.13 defaults to requiring SMB3_11 as the minimum protocol, which provides features like persistent handles and leases. If the administrator sets 'server min protocol = SMB2_02', the server allows SMB2 connections, but SMB2 does not support these features. Consequently, clients can connect but may fail to write files if the share configuration relies on persistent handles or if the client expects SMB3 features. The upgrade from 4.8 to 4.13 changed the default minimum protocol from SMB2_02 to SMB3_11, and explicitly overriding it to SMB2_02 can lead to write failures.
An administrator needs to configure Samba to use encrypted passwords via LDAP backend. The LDAP server is already set up with the necessary schema. Which passdb backend should be specified in smb.conf?
Explanation: The `ldapsam` passdb backend is the Samba module specifically designed to store and authenticate user accounts (including encrypted passwords) against an LDAP directory. The syntax `ldapsam:ldap://ldap.example.com` tells Samba to use the LDAP SAM (Security Account Manager) backend, which maps Samba's account attributes to LDAP entries using the standard Samba LDAP schema (e.g., sambaSamAccount).
A company wants to use Samba to share files with Windows clients. Which service must be enabled in Samba to support Windows Active Directory domain membership?
Explanation: Winbind (winbindd) is the Samba service that integrates with Windows Active Directory by resolving user and group information from the domain controller. It uses the Microsoft Active Directory authentication protocol (Kerberos) and LDAP to map Windows domain users to local Unix accounts, enabling domain membership and single sign-on.
A Samba administrator notices that Windows clients cannot access a shared directory. The share is defined in smb.conf as follows: [shared] path = /srv/samba/shared valid users = @staff browseable = yes read only = no The /srv/samba/shared directory has permissions 755 and is owned by root:staff. Which is the most likely cause of the access issue?
Explanation: The 'staff' group lacks write permission on the directory because the directory has permissions 755, which grants write access only to the owner (root). Even though the share is defined as 'read only = no', Samba enforces filesystem-level permissions. Since the 'valid users = @staff' restricts access to members of the staff group, they need write permission on the directory to create or modify files. The group 'staff' has only read and execute permissions (r-x), so write operations fail.
+15 more File Sharing and Samba questions available
Practice all File Sharing and Samba questions1. Baseline your knowledge
Start with 10 questions to gauge your current understanding of File Sharing and Samba. This tells you whether you need a concept refresher or just practice.
2. Review every explanation
For each question — right or wrong — read the full explanation. Understanding why an answer is correct is more valuable than knowing the answer itself.
3. Focus on exam traps
File Sharing and Samba questions on the LPIC-2 frequently use trap wording. Look for subtle differences in answers that test your precision, not just general knowledge.
4. Reach 80% consistently
Do repeated sessions until you score 80%+ three times in a row. Then move to mixed-mode practice to test cross-topic recall under realistic conditions.
The exact number varies per candidate. File Sharing and Samba is tested as part of the Linux Professional Institute Certification Level 2 LPIC-2 blueprint. Practicing with targeted File Sharing and Samba questions ensures you can handle any format or difficulty that appears.
Yes. Courseiva provides free LPIC-2 practice questions across all exam topics and domains. The platform includes topic-based practice, mock exams, missed-question review, bookmarked questions, and readiness tracking — no account required.
Difficulty is subjective, but File Sharing and Samba is a high-priority exam concept tested in multiple ways — direct recall, scenario analysis, and command-output interpretation. Consistent practice is the best way to build confidence.
Launch a full File Sharing and Samba practice session with instant scoring and detailed explanations.
Start File Sharing and Samba Practice →