https://ubuntu.com/tutorials/install-and-configure-samba#1-overview
sudo apt update
sudo apt install -y samba
sudo nano /etc/samba/smb.conf
[global]
netbios name = DNS-320
veto files = /._*/.DS_Store/Thumbs.db/.AppleDouble/.AppleDB/.bin/.AppleDesktop/Network Trash Folder/recycle/.systemfile/lost+found/Nas_Prog/P2P/aMule/
delete veto files = yes
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
[printers]
browseable = no
[print$]
browseable = no
[Volume_1]
comment = Volume 1
path = /mnt/HD/HD_a2
read only = no
public = no
browsable = yes
oplocks = no
map archive = no
read list =
write list = "@Administrators"
invalid users = "nobody"
valid users = "@Administrators"
[Volume_2]
comment = Volume 2
path = /mnt/HD/HD_b2
read only = no
public = no
browsable = yes
oplocks = no
map archive = no
read list =
write list = "@Administrators"
invalid users = "nobody"
valid users = "@Administrators"
sudo service smbd restart
# sudo ufw allow samba
sudo smbpasswd -a dlink