sudo apt-get install chrony sudo systemctl enable chrony
iptables -I INPUT -p tcp --dport 445 -j ACCEPT iptables -I INPUT -p udp --dport 137:138 -j ACCEPT iptables -I INPUT -p tcp --dport 139 -j ACCEPT
sudo apt-get install samba
Добавим сервис в автозапуск
systemctl enable smbd
Перезапустить сервис
sudo systemctl restart smbd
Расположение конфиг файла
/etc/samba/smb.conf
Пример прав на шару
drwxrwxrwx 2 root root 4096 ноя 11 11:06 public/ d---rwx--- 6 root smbprvt 4096 ноя 9 16:47 private/
[global] workgroup = WORKGROUP security = user map to guest = bad user wins support = no dns proxy = no [public] comment = Public Folder path = /media/hdd/public public = yes writable = yes read only = no guest ok = yes create mask = 0777 directory mask = 0777 force create mode = 0777 force directory mode = 0777 [private] path = /media/hdd/private valid users = @smbprvt guest ok = no browsable = yes writable = yes