Samba and Raspberry Pi (and Fedora)

things to know before you start

  • symlinks won't work automatically
  • user authentication is separate to linux logins so make sure you duplicate accounts and passwords
  • Install

    apt-get install samba samba-common-bin

edit /etc/samba/smb.conf

[pimylifeupshare]
path = /home/pi/music
writeable=Yes
create mask=0777
directory mask=0777
public=no

create a samba user

sudo smbpasswd -a pi

restart samba

sudo systemctl restart smbd

Connect

\\raspberrypi\pimylifeupshare`

or on mac for example

smb://192.168.178.62/pimylifeupshare

Fedora install

dnf install samba
sudo systemctl enable smb --now
firewall-cmd --get-active-zones
sudo firewall-cmd --permanent --zone=FedoraWorkstation --add-service=samba
sudo firewall-cmd --reload
sudo smbpasswd -a martin

symlinks

add this to your smb config file

follow symlinks = yes
wide links = yes
unix extensions = no

Gotchas

  • make sure ports are open
  • make sure directory exists in smb.conf

MOre info