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”
┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅
– Live Stream Archives ➜
– Recommended Windows Anti-Virus ➜
– Recommended VPN Service ➜
– Recommended Web Browser ➜
– Website Recommendations ➜
– My Gear ➜
💻🖥 Contact Me 🖥💻
– Twitch (Check Schedule) ➜
– Patreon ➜
– Twitter ➜
┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅
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!
Nguồn: https://ethiopianstories.com/
Xem thêm bài viết khác: https://ethiopianstories.com/tong-hop/
Xem thêm Bài Viết:
- Vì sao kẻ xấu thường lừa đảo bán đất huyện Thanh Trì chót lọt?
- Tuổi Tân Dậu hợp hướng làm việc nào? Đông Nam tốt không?
- Có 2 tỷ, mua căn hộ Moonlight Park View nên không?
- Hướng dẫn chuyển văn bản word từ font .vntime và .vntimeH sang font Time new roman
- Cách mở khóa máy tính không cần mật khẩu , password cực dễ – pc online repair
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
Im having a hard time watching cause your camera and lighting setup reminds me of naughty america…
force create mode is fine but with the 'e'. Thank you for this video. I will try.
what phantastic distros are you all running if you can select sharing by right click?
i run mint 19.2 with mate desktop and there is not such thing.
Did you ever create the "more advanced" setup ?
everything worked well but my guest are allowed to do what they want on the server. how i change the guest to be able to create and view but NOT to delete?thanks
thanks for the video for setup samba
Testfile testfolder too confusing
how i can delete files from other disks like hdd using Linux mint 19.3 distro ? i try delete some files and dont let me do it
My ubuntu 18.xxxx distro didn't have the Local Network Share, or a smb.conf file in /etc. So used Synaptic to download/install SAMBA. It did, but no love. Guessing I need Nautilus then?
This helped me with an assignment! Turns out that my Windows Machine had the SMB 1.0 client disabled by default. I had to activate it, and it seems to be working (at least, for this example). Thanks!
It's alive, after ages of trying online forums, docs and failing I was just about give up on linux for this home server to install Windows. I thought one last chance for this installation, stumbled across this video and 20 minutes later Samba was up and running, thank you so much
Thank you so much! I realize that your vid is 18 months old, but I was trying to configure Samba on Ubuntu 20.04 with Windows 10. I was using the default smb.conf file, but it was so confusing due to all the commented out params.
I had read at least 1/2 dozen tutorials on setting up Samba on Ubuntu for Windows access, but none mentioned that you need to enable the SMB 1.0 service on Windows.
Matter of fact, one tutorial I read linked to a Microsoft page which warned against using SMB 1.0.
Well, I'm on a local network, and have excellent firewall so I am not worried about security with SMB 1.0.
I have upvoted your video, and have liked and subscribed to your channel.
Thank you.
Ethan TX
Thank you for the clear instructions but are my files safe ?
Is there any encryption or firewall option?
thanks it helps me a lot!
thanks it helps me a lot!
love your videos but I just dont have the patience for terminals… i get soo lost I know people are gonna get mad, now I dont hate the terminal, I use it, but once i start changing directories and such i just start getting lost.
thanks! you saved me
I have 400/100Mbit fiber at home and office. I have a NAS4Free box and a HyperV server at office. I set up a TurnKey VPM VM at office and works fine to connect. But… While I VPN copying files directly from the NAS smb 2.0 shares is only 2-4MB/sec (should be 10-12 range) copying same files off a windows share I get the full 11MB/sec. This takes a 10 HOUR VM backup from 10 hours to 50 hours (too slow)
Why NAS4 free smb shares so much slower than windows shares over open VPN to home?
I just want to share folders between my Ubuntu laptop and my Manjaro desktop, do I use Samba for this, or is there something else that works better?
Windows supports SMB by default, it only dropped support for 1.0/CIFS because it's crazy insecure. All it needs is add the "min protocol" parameter as SMB2 or SMB3 on smb.conf
Doesn't work. I did all steps but …
Thanks Chris for this video. I was struggling setting up samba from my new debian 10 box to windows 10. Once I created this simple smb.conf file with your suggested entries, BOOM, my share came alive! Magic indeed. Thanks again.
Hello Chris! @christitustech I was wlaking through this but at that moment when i ran $ sudo gedit smb.conf output was sudo: gedit : command not found and im sure i did everything correctly before this . Any ideas why that would have been ?
Thank you for this tutorial. Can I ask if there is a more "in depth" version?
Hey Chris just wanted to give a big THANK YOU. After watching this video I was able to set up my home network of 2 Linux computers and 2 Win 10 computers, I have been fighting this for days.
hi, i have installed centOS 8 on VMware player, and on it i have configured samba as you did, i am trying to access the file server from other pcs and the host pc by typing into "run" the server's ip. but it doesn't work. anyone has an idea why?
hi,
how does the user groups work ?
does it work like windows groups
where i can give permissions to a group and all the users in that group will get the perms ?
doesn't work for me in ubuntu 19.1
How did you enable the Share option in the file explorer GUI? I am using CentOS 8 and Nautilus
Thank you for this tutorial it straight to the point and worked well. can you assist with one issue though how do i speed up my samba share its so so so SLOW
"Chris Titus Tech is awesome"! I'll second that. After trying many googled solutions I gave up on Samba, then I found yours. Simple and clean. Thanks!
Hey Chris, i came across to this video searching for a solution for a problem with samba between my laptop and my desktop computer. Both are Linux Mint. But now i found out that mount is telling me this: "mount error(115): Operation now in progress" just because the firewall on my laptop was active and in default setting. i deactivated it for testing and the sharing worked just fine.
Here is my Question: How do i set up the Firewall in a way that it can stay active but allow me to share files at home?
I installed Samba on Ubuntu Bionic Bunny 18.04, and it installed correctly according to Ubuntu, but wouldn't show up on ANY Windows system in my network at all ANYWHERE in my home on the 6 other Windows computers I have running in my house!! TWO WEEKS I tried to troubleshoot the problem, two weeks everything I did failed, and I finally gave up, left it alone and was tempted to yank the install back off the Ubuntu machine I was running it on!
THEN one morning I fired up my two work horse computers, my Ubuntu system and my Windows 7 machines, and half awake I sat here moving files between them like I normally do with a flash drive, until out of the blue I decided to open "network" in Windows Explorer, and there to my amazement was my Linux machine FINALLY showing up in the list….which when I clicked on it there in the "location folder" was my "Samba Drive" file folder I had set up as a test "place" on my network!!
I don't know HOW it fixed itself, I don't know WHY it fixed itself, but for two weeks I couldn't get Samba to work or run or even show up on the network, and then one day it just started working two weeks later!! Now three more weeks have gone by and I still DO NOT UNDERSTAND what changed that Linux and Windows can now share files!! It is the weirdest "glitch" I have ever seen!!
if i want a rolling distro for a dedicated file server with old hardware (amd64 single core with 2 gb ram) for an office, which distro should i pick? TIA
I don't get Local Network Share