Step 1
sudo apt-get update
sudo apt-get install samba
Step 2
Add to the [global]
section of the /etc/samba/smb.conf
file:
force group = dfediuk
force user = dfediuk
unix.stackexchange.com/a/164887
Step 3
Add to the bottom of the /etc/samba/smb.conf
file:
[discourse]
browseable = yes
create mask = 777
guest ok = yes
path = /home/dfediuk/discourse
read only = no
Step 4
sudo service smbd restart && sudo service nmbd restart
testparm
«How to Create a Network Share Via Samba Via CLI (Command-line interface/Linux Terminal)».