Raspberry Pi Samba Server

From West Side Of Dawn
Jump to navigation Jump to search

Install Buster

sudo apt update 
sudo apt upgrade

sudo apt install samba exfat-fuse ntfs-3g fail2ban git
sudo mkdir -m 1777 /nas

sudo nano /etc/samba/smb.conf
Comment = Pi Network Attached Storage
Path = /nas
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0777
directory mask = 0777
Public = yes
Guest ok = no
sudo adduser kodi
sudo smbpasswd -a kodi
sudo /etc/init.d/smbd restart

Edit fstab and add:

UUID=1CA057FDA057DBB8 /nas      ntfs-3g defaults,noatime 0 2