SMB File Share

Update System

sudo apt update

Install Samba

sudo apt install samba

Edit Share Config

sudo vim /etc/samba/smb.conf

Add share point at the bottom of the config file

    comment = Your Comment Here
    path = /path/to/share/dir
    read only = no
    browsable = yes

Start Samba

sudo systemctl start smbd.service

Enable Autostart

sudo systemctl enable smbd.service

Update Firewall Rules

sudo ufw allow samba

Setting User Password

sudo smbpasswd -a username


Username used must belong to a system account, else it won’t save.