Skip to main content

Samba(SMB) Setup

Setting up SMB Server on Linux

Install the samba tool on Linux.

sudo apt update
sudo apt install samba -y

Edit theĀ /etc/samba/smb.conf

[nvme_share]
   comment = NVMe Share
   path = /mnt/nvme/share
   browseable = yes
   read only = no

nvme_share is the name of the Samba path which will appear in SMB clients and its path is accessed by \\192.168.0.1\nvme_share

image.png

path is the location where the files are stored

browseable andĀ read only are flags that are needed to make sure read/write access on the SMB share

Lastly, add the user and password for the SMB share

sudo smbpasswd -a $USER # enter the password twice