CertGrid CertGrid
Hands-on Lab·LPIC-2

Samba shares, users, and client access

Objective 209 names Samba alongside NFS, and Samba is the half with a separate password database. This guide installs it, defines a share, creates an account that exists in both the unix and the Samba databases, and proves the whole thing from a second machine - including a write that succeeds, a credential that is refused, and a write refused by Samba while the filesystem still permits it.

202: File Sharing Guide 23 of 29 Intermediate

A server and a client. Every result on this page is produced from the machine that is not running Samba, because a share that has only ever been read locally has not been tested.
Server NameIP AddressOSRolesCPURAMHDD
LPIC2-A01192.168.0.78Ubuntu 26.04 LTSPrimary service host - BIND, Apache, Samba, Postfix. Topic 204 RAID runs on loop devices; this machine has no spare disk2 Core4 GB50 GB
LPIC2-C01192.168.0.80Ubuntu 26.04 LTSClient - resolves, mounts and connects, so every service is proven from a machine that is not running it2 Core4 GB50 GB

This guide includes

Use this when a Windows client, a scanner or a colleague needs a directory from a Linux server. This matters because Samba keeps its own user database and its own per-share policy, so an account that logs in perfectly over SSH can be refused a share, and a share can refuse a write the unix permissions allow.

Before you start

  1. A server with no file sharing on it

  2. A share, and the account that may reach it

  3. The share definition, checked before any restart

  4. The share, from a machine that is not the server

  5. Writing back, and the two permission layers

  6. Putting both machines back

Official sources