LPIC-2 · topic practice

File Sharing and Samba practice questions

Practise Linux Professional Institute Certification Level 2 LPIC-2 File Sharing and Samba practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: File Sharing and Samba

What the exam tests

What to know about File Sharing and Samba

File Sharing and Samba questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common File Sharing and Samba exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

File Sharing and Samba questions

20 questions · select your answer, then reveal the explanation

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?

Question 2mediummultiple choice
Read the full NAT/PAT explanation →

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?

A Samba server is configured as a domain member in an Active Directory environment. Users report that after changing their password on a Windows client, they cannot authenticate to Samba shares. The Samba server is using winbind and the 'idmap_ad' backend. What is the most likely cause?

A Samba share is configured with 'force user = jane'. A user 'bob' accesses the share. With what effective user ID will file operations be performed?

Which Samba component provides NetBIOS name resolution and browsing services?

A Samba server is configured with 'security = ads' and joined to an Active Directory domain. Users can authenticate but cannot access shares. The smb.conf includes 'winbind use default domain = yes'. What could be the problem?

An administrator needs to configure Samba to allow guest access to a share. Which two parameters must be set?

After modifying smb.conf, which command should be used to verify the configuration syntax before restarting Samba?

Which TWO parameters are used to control Samba's printer sharing? (Choose two.)

Which THREE statements about Samba's 'net' command are true? (Choose three.)

Which TWO files are commonly used by Samba for configuration and user authentication? (Choose two.)

Which THREE are valid values for the 'security' parameter in smb.conf? (Choose three.)

Given the smb.conf exhibit, which share(s) allow write access to user 'alice' who is a member of the 'staff' group?

Exhibit

Refer to the exhibit.

[global]
workgroup = MYGROUP
server string = Samba Server
security = user

[share1]
path = /srv/samba/share1
valid users = alice, bob
read only = no

[share2]
path = /srv/samba/share2
valid users = @staff
read only = yes

[share3]
path = /srv/samba/share3
guest ok = yes
read only = no

Based on the smbstatus output, which statement is true?

Exhibit

Refer to the exhibit.

$ smbstatus
Samba version 4.15.2
PID     Username     Group        Machine                        Protocol Version
12345   alice        staff        win10-pc (192.168.1.10)        SMB3_11
12346   bob          users        win7-pc (192.168.1.11)         SMB2_10

Service      pid     Machine       Connected at
share1       12345   win10-pc      Tue Mar 14 10:00:00 2023
share2       12346   win7-pc       Tue Mar 14 10:05:00 2023

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock       SharePath   Name
12345        1001       DENY_NONE  0x100089    RDONLY     NONE         /srv/samba/share1   report.pdf
12346        1002       DENY_NONE  0x100089    RDONLY     NONE         /srv/samba/share2   data.xls

Your company runs a Samba file server (version 4.15) in a mixed environment with Windows 10 and Linux clients. The server is part of an Active Directory domain. Recently, a new security policy requires that all SMB connections use SMB3 encryption. You have configured 'smb encrypt = required' in the [global] section of smb.conf and restarted smbd. However, Windows clients report that they cannot connect to the server, while Linux clients can connect using mount.cifs with the 'seal' option. You check smb.conf and verify that 'server min protocol = SMB3' is set. What is the most likely cause of the Windows clients' inability to connect?

A system administrator wants to configure a Samba share that grants read-only access to the 'staff' group and full control to the 'managers' group. Which share configuration achieves this?

A Linux server running Samba as a domain member is experiencing slow authentication for users. Which two configuration changes are most likely to improve authentication performance?

Question 18hardmultiple choice
Read the full NAT/PAT explanation →

A Samba server is configured as a print server. Clients running Windows 10 report that printer drivers cannot be uploaded. The relevant smb.conf section is:

[printers]

comment = All Printers path = /var/spool/samba browseable = no printable = yes

What is the most likely cause?

Which TWO of the following are valid ways to map a Windows user to a Linux account in Samba?

Question 20mediummultiple choice
Read the full NAT/PAT explanation →

A company runs a mixed Linux/Windows environment. The Samba server (version 4.15) is configured as a domain member using 'security = ADS'. Recently, the IT team enabled 'winbind use default domain = yes' to simplify logins. After the change, users report that they can no longer access Samba shares when authenticating with just their username (e.g., 'jdoe') instead of 'DOMAIN\jdoe'. However, authentication using the full domain-qualified name still works. The smb.conf includes:

[global]

security = ADS workgroup = MYDOM realm = MYDOM.LOCAL winbind use default domain = yes winbind separator = /

Users are in the 'Domain Users' group and the share configuration is:

[share]

path = /srv/share valid users = @"MYDOM\domain users"

Which of the following is the most likely cause and solution?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused File Sharing and Samba sessions

Start a File Sharing and Samba only practice session

Every question in these sessions is drawn from the File Sharing and Samba domain — nothing else.

Related practice questions

Related LPIC-2 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the LPIC-2 exam test about File Sharing and Samba?
File Sharing and Samba questions test whether you can apply the concept in context, not just recognise a definition.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just File Sharing and Samba questions in a focused session?
Yes — the session launcher on this page draws every question from the File Sharing and Samba domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other LPIC-2 topics?
Use the topic links above to move to related areas, or go back to the LPIC-2 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the LPIC-2 exam covers. They are not copied from any real exam or dump site.