How to setup Samba for File Sharing in Linux

Subscribers:
688,000
Published on ● Video Link: https://www.youtube.com/watch?v=oRHSrnQueak



Category:
Guide
Duration: 17:46
231,227 views
3,000


In this video, I go over how to setup samba for file sharing in Linux. This is a streamlined video that goes over the 2 easiest ways to accomplish this task.
Timestamps:
0:18 - Samba Share setup in Ubuntu GUI (nautilus)
2:25 - Terminal Setup - Smb.conf walkthrough
12:25 - Enabling SMB 1.0 in Windows
14:37 - Verifying Shares and Access

Below is my Samba Cheat-Sheet I created

Install Samba:
sudo apt install samba -y

Stop Samba Service:
sudo systemctl stop smbd

Create new directory to share:
mkdir linuxshare

Create New /etc/samba/smb.conf

In [global] tag add or change the folowing lines:
server role = standalone server
map to guest = bad user
usershare allow guests = yes
hosts allow = 192.168.0.0/16
hosts deny = 0.0.0.0/0


Add new tag at the end:
[linuxsharename]
comment = Open Linux Share
path = /home/titus/linuxshare
read only = no
guest ok = yes
force create mode = 0755
force user = titus
force group = titus

TEST SETTINGS Type: testparm

Restart Samba Service
sudo systemctl enable smbd
sudo systemctl start smbd

OPTIONAL: Allow samba through firewall
RHEL/Centos/Fedora
sudo firewall-cmd --add-service=samba

Debian/Ubuntu/Mint
sudo ufw allow Samba

Now on any Windows Machines enable windows feature "SMB 1.0"



Support My Work
-----------------------------------------------------------------------------------
►► Get Updates, Launch Announcements and More ➜ https://www.cttstore.com/newsletter
►► Chris Titus Tech Digital Downloads ➜ https://www.cttstore.com/downloads
►► Product and Service Recommendations ➜ https://christitus.com/recommendations
►► My YouTube Gear and Computers ➜ https://www.amazon.com/shop/christitustech

Other Places to Find Me
-----------------------------------------------------------------------------------
►► Titus Tech Talk ➜ https://www.youtube.com/c/TitusTechTalk
►► Titus Tech Gaming ➜ https://www.youtube.com/c/TitusTechGaming
►► Chris Titus Fitness ➜ https://www.youtube.com/@christitusfitness
►► Twitch ➜ https://www.twitch.tv/christitustech
►► Twitter ➜ https://twitter.com/christitustech

DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps supports the channel and allows us to continue to make videos like this. Thank you for your support!







Tags:
linux
samba
file sharing
how to
how to set up samba for windows-linux file sharing
samba file sharing
linux file sharing
how to configure samba server in linux ubuntu
samba file sharing in ubuntu 16.04
samba (software)
sharing
samba file server
linux how to
ubuntu (operating system)
samba server
chris titus tech
how to setup samba
how to set up samba
how to setup samba server
How to setup linux file server