Set up Raspberry Pi as SMB Server for your local network

You can turn your Raspberry Pi into a Samba file server to back up and share content from anywhere on your local network.

Samba is the Linux implementation of the SMB/CIFS file sharing standard used by Windows PCs and Apple computers, and it is widely supported by media streamers, gaming consoles and more.

Set up Samba File Server

How to install samba:

sudo apt-get install samba samba-common-bin

Edit samba configuration:

 sudo nano /etc/samba/smb.conf

Change the line:

security = user

Insert end of file:

[PiShare]
comment = Raspberry Pi Share
path = /mnt/usbel
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
read only = no

Run the command:

sudo smbpasswd -a pi

Restart the server:

sudo service samba restart

Hooray, Samba is now up and running! Thumbs up!

You can also use it as a mapped network drive and enjoy your SMB server on Windows 10!

Adem
Adem

I'm an IT professional with more than 10 years of work experience. I love computers and all aspects of technology.

https://tech333.com

Leave a Reply

Your email address will not be published.