Setup Samba Server on Raspberry Pi

Install Samba Server

sudo apt install samba

Add current user and password. If you want to set some other user then change $USER with the particular user name.

sudo usermod -aG sambashare $USER && sudo smbpasswd -a $USER

Unfortunately, on Raspberry Pi to share a folder using the Samba software you have to modify the samba config file

sudo nano /etc/samba/smb.conf

If default settings (on Windows) are used, skip this step

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

Now describe your share

[name_of_share_want_to see_from_other_computer]
path = /home/pi/<folder name you want to share>
writeable=Yes
create mask=0777
directory mask=0777
public=no

Restart the Samba server and it’s ready to use

sudo systemctl restart smbd

Source: How to Setup a Raspberry Pi Samba Server – Pi My Life Up

Leave a Reply

Your email address will not be published.

Yandex.Metrica