📁
Storage

Samba

Windows-compatible file sharing on Linux

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

Samba shares Linux folders so Windows and Mac computers can access them like network drives.

📁

Config files for Samba

Where to create or edit the main configuration — paths below match the setup steps.

  • /etc/samba/smb.conf

    Location: Samba server

    Shares, users, and workgroup

📥

Step 01

Install Samba

(01)Install Samba

Linux
1sudo apt-get install -y samba
2sudo systemctl enable smbd
⚙️

Step 02

Configure Samba

(01)Configure Samba

Linux
1sudo nano /etc/samba/smb.conf
2# Add [share] section
3sudo smbpasswd -a username
4sudo systemctl restart smbd

Step 03

Verify

(01)Verify installation

Linux
1testparm -s
2smbclient -L localhost -U%