Skip to content

Instantly share code, notes, and snippets.

@mijorus
Created August 25, 2025 09:02
Show Gist options
  • Save mijorus/8fe6eabfa63a951ec82ec5d4aeb4048c to your computer and use it in GitHub Desktop.
Save mijorus/8fe6eabfa63a951ec82ec5d4aeb4048c to your computer and use it in GitHub Desktop.
SMB Raspberry Pi configuration

Install Samba

 sudo apt install samba samba-common-bin

Edit config file

sudo nano /etc/samba/smb.conf

Add the following to the bottom

[home]
   path = /home/pi
   browseable = Yes
   writeable = Yes
   only guest = no
   create mask = 0777
   directory mask = 0777
   public = no
   force user = pi

Create a pi user for samba

sudo smbpasswd -a pi

NOTE: The password of the system's pi user and smb pi user ARE NOT THE SAME

Restart service

sudo systemctl enable smbd
sudo systemctl restart smbd

Connect to it from Windows

\\raspberrypi.local\home

Type WORKGROUP\pi when asked for a username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment