Setting up Simple Samba File Shares

  Рет қаралды 233,786

Learn Linux TV

Learn Linux TV

3 жыл бұрын

Sometimes, you just want to share files with colleagues quickly without worrying about permissions. In this tutorial, I go over the process of creating shares for your home or small business network that are wide-open and writable for all. This isn't for sharing protected or confidential files, but will get you up and running with a shared folder or two that's accessible by all.
🙌 Support me on Patreon and get early access to new content!
➡️ learnlinux.link/patron
☁️ Get $100 in credit toward deploying your very own Linux servers on Linode!
➡️ linode.com/learnlinuxtv
Wiki Article for this video:
www.learnlinux.tv/setting-up-...
🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
➡️ learnlinux.link/amazon
💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
➡️ learnlinux.link/tinypilot
🐦 Follow me on Twitter!
➡️ learnlinux.link/twitter
💬 Official LearnLinux.tv Community:
➡️ community.learnlinux.tv
📖 Check out jay's latest book, Mastering Ubuntu Server 3rd Edition. Available now!
➡️ ubuntuserverbook.com
👨 More about me:
➡️ www.jaylacroix.com
➡️ www.learnlinux.tv/about-me
💽 How to create a bootable flash drive for installing Linux:
➡️ linux.video/flash-usb
🐧 Which distro do I use?
➡️ learnlinux.link/mydistro
🔐 How to better secure OpenSSH:
➡️ linux.video/secure-ssh
☁️ How to create a cloud Linux server with Linode:
➡️ learnlinux.link/create-linode

Пікірлер: 281
@martingjsmith
@martingjsmith 6 ай бұрын
As a real Linux newbie, I learnt a lot from this video whilst experimenting with a Raspberry Pi and Ubuntu Server. Time to start watching the rest of your Linux videos in 2024. Thank you and a Happy New Year.
@wellbi
@wellbi 7 ай бұрын
For those who struggle to see the Samba server in Windows. Windows doesn't support NetBIOS discovery anymore and Samba out-of-the-box relies on that. You have to install wsdd on the machine running Samba (For Debian-based distros "apt install wsdd"), after that, the files/folders set up in Samba will be discoverable by the Windows machine.
@MarthaBlank-fb6qx
@MarthaBlank-fb6qx 2 ай бұрын
Might that work for getting a Debian 12 client to see Ubuntu Server 22.04? Failed to retrieve share file list from server or directory. Newbie and been over everything numerous times.
@saintsandsin3885
@saintsandsin3885 Ай бұрын
OMG, hours trying to figure this out and this worked. Thank you so much!
@dinnerandashow
@dinnerandashow 3 жыл бұрын
Wow ! Not just spitting out instructions but also a brief explanation of the instruction. A foreign concept to most people that believe they are making tutorial videos.
@celo32390
@celo32390 2 жыл бұрын
I’ve been scouring KZbin for a video like this, I’ve watched countless videos only to find myself with errors or not working properly. FINALLY YOUR VIDEO SO DETAILED DOESNT SKIP A BEAT. Thank you 🙏
@yiannisspanos694
@yiannisspanos694 3 жыл бұрын
Great video. Are you planning to make a video for "not so simple" file shares too?
@BrianThomas
@BrianThomas 3 жыл бұрын
I've seen a few of these and this one ranks up there. Thanks for the help. I'd love to see a more advance video on Samba sharing if you have the time to put something together for us.
@michaelscofield4524
@michaelscofield4524 Жыл бұрын
I know this video is 2 years old but your videos just rock man. I followed your Arch install along some years ago and am not disappointed with this one either. Superb and concise.
@Celluarexpress
@Celluarexpress 8 ай бұрын
Worked for me thanks!
@markh2827
@markh2827 2 жыл бұрын
Gday Jay, your video has to one of the easiest ones to understand and follow with regards to Samba setups. It got me back up and running in no time. Also slowly going through your Linux tutorials, which has helped with mounting drives and understanding permissions. Cheers
@sherakhela4044
@sherakhela4044 3 жыл бұрын
Thanks Jay for this great tutorial. I set up my very first samba server today with your help. The mistake I made in typo, used shares instead of share in config file. It took me little time to figure it out. Now I can see content on my other device. Thanks a lot
@LK-pc4sq
@LK-pc4sq 2 жыл бұрын
I think that is my mistake let me see why its not working
@BinayakKundu
@BinayakKundu 3 жыл бұрын
Thanks Jay! Please make a video on samba sever with user name and password.
@metalxthrashingxmad1
@metalxthrashingxmad1 3 жыл бұрын
Thank you for making this video. I'm a newer Linux user, and haven't been able to find a way to successfully make Samba function, until now!
@markward4284
@markward4284 3 жыл бұрын
Thanks so much, I've been trying to do this exact thing for the last week and the other videos or web pages with instructions I found never worked for me, this did first time, thanks again. I'm subscribing and see what else I can learn.
@asaskald
@asaskald 3 жыл бұрын
Thank you, Jay! This video pushed me to buy your Ubuntu Server book. Your channel is one of my favorites.
@user-sj2uj4pz8n
@user-sj2uj4pz8n 7 ай бұрын
Thanks man I can't tell you how much searching I did to get this to work before coming across your video, now it's working perfectly.
@binarytrekker
@binarytrekker 2 жыл бұрын
I followed this tutorial at least 10 times and every time I got access tonight or something different. I finally just used putty to SSH into the VM, and copied and paste everything from your tutorial and it worked
@hitesh6762
@hitesh6762 2 жыл бұрын
Understood the concept very clearly, thanks for the detailed and informative explanation, please keep posting such linux videos, these are very helpful and informative
@jtreg
@jtreg 2 жыл бұрын
this actually works. Not a given in KZbin. Clear and concise. Subscribed, thanks man.
@Yosip_777
@Yosip_777 3 жыл бұрын
I had to allow samba through my Ubuntu server's firewall to see it on my Windows 10 machine. The command I used: sudo ufw allow samba
@jeremychick619
@jeremychick619 3 жыл бұрын
Thanks friend.
@zameerpashablr
@zameerpashablr Жыл бұрын
I have watched at least 20 times ...Love to learn from you. At last did experiment creating samba server.
@johnh10000
@johnh10000 2 жыл бұрын
Thank you sir I copied Open Meadia Vault config, some times it works some times it don't. Exactly follow your tutorial, and smb works every time, even with an ntfs share. Great stuff
2 ай бұрын
For use in a demo for my master's degree on big data I'll use some Samba shares, and even I have used Samba before (and have the Carter, Ts & Eckstein "Using Samba" book), this was the fastest way to create public shares that I found that works. THANKS, MAN, THANKS
@_axlandrade
@_axlandrade 2 жыл бұрын
Hey man, THANKS ! U literally just saved my life with this tutorial ! Keep up with the great job !
@tomashley9246
@tomashley9246 2 жыл бұрын
If it's not working for Windows10 try this: . Click and open the Search Bar in Windows 10 Type Windows Features in the search bar Double Click Turn Windows Features off and On 2. Scroll down to SMB 1.0/CIFS File Sharing Support 3. Check the box net to SMB 1.0/CIFS File Sharing Support and all other child boxes will auto populate After you do this you'll have to reboot. For more clarity try searching "SMB win10 features" to learn how to enable it more in-depth.
@Lanzetsu
@Lanzetsu 3 жыл бұрын
This is one of the best videos about SAMBA I ever watched, thanks a lot!
@noweare1
@noweare1 Жыл бұрын
samba is kind of complicated but you made it much easier to understand and implement, thanks.
@user-rc2ob2uo6p
@user-rc2ob2uo6p 2 ай бұрын
First time I got a samba server working reliably. Thanks Jay
@calvinlondt3037
@calvinlondt3037 3 жыл бұрын
I don't know if it's an older version of samba on the video but the service is 'smb' not 'smbd', for those who didn't get this working by copying exactly from this video.
@lesphillips9741
@lesphillips9741 3 жыл бұрын
Thank you very much! Awesome video. Had to watch it twice, but learned so much. Where can I go to get the links for the data?
@Pananananananananify
@Pananananananananify 3 жыл бұрын
Great explanation and example. Very straightforward
@ourkid2000
@ourkid2000 3 жыл бұрын
Anyone know how to actually put some files in the Protected Files location? No matter what user I'm logged in as, I get permission denied.
@silverthunderbird
@silverthunderbird 3 жыл бұрын
Windows 10 users, pay attention to the last few minutes of the video. If you don't see the shares in Windows file explorer, you need to enter your Linux box's IP address in the file explorer search bar. Secondly, there are steps that are different and/or missing from the Wiki page for this video. Otherwise, excellent video.
@michaelbrauner
@michaelbrauner Жыл бұрын
Ok... and where do I ffind this IP address?
@AllAbout.Digital
@AllAbout.Digital 7 ай бұрын
@@michaelbraunermost of the time it’ll be your host servers IP. so if you type “ip a” on your linux machine, just harvest the interface IP you are currently using and that’ll be your smb server ip
@bingchilling495
@bingchilling495 6 ай бұрын
thank you very much I was confused
@Ballistichydrant
@Ballistichydrant 2 жыл бұрын
Thanks so much for this. Not sure why I was directed by Google to tens of sites with completely inaccurate or outdated instructions before I found you. There is so much incorrect information about this topic. Also not sure why this process is so much more involved than it used to be. Back in 2008 I used to build samba office servers and the process of setting up shares was much more straight forward. It was a long time ago and I stopped using Linux in 2010, but as I recall it was just install SMB samba and system-config-samba and then edit samba.conf and add the user to samba group. Then you were done. What happened? Once again thanks so much for the very detailed instructions. Clear voice and instructions. Really helpful.
@jwatkins320
@jwatkins320 2 ай бұрын
Worked first try. Thank you so much
@quentinb9692
@quentinb9692 2 жыл бұрын
Thanks, works awesomely. Other guides wasted my time trying to figure it out.
@pieinside2345
@pieinside2345 10 ай бұрын
great tutorial. works great with next to no modification. made this a lot easier than it needed to be and I learned some things as well :)
@danp1975
@danp1975 2 жыл бұрын
Thank you for the excellent tutorial! I've followed it and it works perfectly for the local drive however I'm having no luck with a USB external drive share.
@onlyeyeno
@onlyeyeno 3 жыл бұрын
Great video as always, though it leaves me curious as to how this differs from making a "Local Network Share" using the "file explorer" ?? What, if anything, is different ?? Best regards.
@peterlaidlaw8655
@peterlaidlaw8655 3 жыл бұрын
Thanks much. Clearly said, best vid on the topic!; works with Odroid XU4 linux 20 and Win10 ver 1909. Sonos users should to add the line "ntlm auth = yes" in the [global] to make the share visible. Also for Linux 20 add server min protocol = NT1 ... to make it work.
@Jose-tw9bl
@Jose-tw9bl 3 жыл бұрын
Thank you for the video! very clear and detailed explanation
@RCTurbine
@RCTurbine 3 жыл бұрын
Very helpful, useful video - Thanks so much for sharing
@keonbillings5437
@keonbillings5437 Жыл бұрын
I landed on this page because I want to setup a file share in my lab that my students can use to upload their work files too large for the school servers. Honestly, this is the clearest explanation to Samba shares I've ever seen. There are a lot of garbage videos claiming tutorial status but none comes close. That said, I find Samba and Linux tedious and unnecessarily difficult for such a simple task of sharing a folder. I cannot believe that after all these years, Linux still don't have a decent native file share option. This is one of the many reasons why Windows and Mac will always remain superior to Linux. It only took a few clicks of the mouse in Windows and I had a share folder my kids could use. Yes, I know about the 20 user concurrent connection limit, but I'd rather deal with that than learn a new language just to create a simple share. Thanks for the video. I've shared it with my students, so if one of them wants to go this route.
@EnFuego79
@EnFuego79 11 ай бұрын
" I cannot believe that after all these years, Linux still don't have a decent native file share option." On most modern linux distros, like Mint, you can just right click on the folder you want to share and select "sharing options" not sure how you missed this... did you even try new distros before making assertions like this?
@TheAlexander775
@TheAlexander775 4 ай бұрын
GREAT TUTORIAL! I keep coming back to this every time I break my server :P One error I wanted to mention if other get it is not being to chown (change owner) of the share folder, this happened to me and apparently it's caused by the format of the drive itself, in this case it was Vfat. So if you're getting this error, it might be worth to check out.
@leighhorton2806
@leighhorton2806 3 жыл бұрын
This was the video I have been waiting for. I use arch and it has been a challenge to get samba share with a mycloud 4tb storage. Very well done. I can share all content.
@scottroth6273
@scottroth6273 Жыл бұрын
Awesome - you made it so easy! Thanks.
@cgsquash
@cgsquash 2 жыл бұрын
very clear explanation works perfectly
@rebeljt
@rebeljt 3 ай бұрын
Awesome video! Helped me a ton!
@michaelb7087
@michaelb7087 3 жыл бұрын
This helped allot. Thanks for the step by step
@NerdonWheels
@NerdonWheels 2 жыл бұрын
Fantastic guide. Thank you!
@isellcuddlesessions66
@isellcuddlesessions66 3 жыл бұрын
Really great video. Thanks a bunch.
@TRAMETOOLS
@TRAMETOOLS 3 жыл бұрын
Great class. Thanks!!!
@AbarSimorgh
@AbarSimorgh Жыл бұрын
Thank you for the video. Can an existing folder be shared the same way as in the video and just change the group and owner to that existing folder?
@nathanbishop4197
@nathanbishop4197 3 ай бұрын
fantastic walk through. thank you
@ForrestRhoads
@ForrestRhoads 3 жыл бұрын
Very good video. I use sshfs for most everything now though, whether home network or remote access to it.
@IanaL
@IanaL 3 жыл бұрын
It works!!! Thank you very much.
@YannMetalhead
@YannMetalhead Ай бұрын
Very good guide, thank you!
@Notyourbusinesschap
@Notyourbusinesschap 5 ай бұрын
Thank you! Everything works great!
@Arelius.D
@Arelius.D 2 ай бұрын
There is basically no one else who is as great as you as a teacher so your guidance are much appreciated! Having said that, is there any chance these videos could come in newer versions so the content could reflect the latest version of these services?
@obyrnedd
@obyrnedd Жыл бұрын
Absolutely outstanding work! CompTIA Linux+ is on my wishlist. I might have to sit down and watch every video you've ever made. Thank you.
@eel64
@eel64 Жыл бұрын
Thank you. You make Samba easy.
@zmgkbao5252
@zmgkbao5252 9 ай бұрын
you don't know how much time you saved me 😭 Thankyou
@francisguchie1973
@francisguchie1973 2 жыл бұрын
I like this because this makes it much easier to change it into a more complex setup after one succeeds in getting it to work. Thank you so much (Keeping it Simple and Stupid on the first steps )
@jaybienick4926
@jaybienick4926 2 жыл бұрын
VERY GOOD tutorial, thank's!
@Farang_Lifestyles
@Farang_Lifestyles 3 жыл бұрын
Excellent video,,, clear precise with a link to a created wiki... very professional touch.... earned my sub-channel
@tigerbalm666
@tigerbalm666 3 жыл бұрын
Been using VCL for my network streaming. Hope this is better.
@Moses_coder
@Moses_coder 6 ай бұрын
Great. Learnt a lot thank you.
@gordian99
@gordian99 Жыл бұрын
This was very helpful.
@tokoiaoben3842
@tokoiaoben3842 3 жыл бұрын
I have setup samba share and one of the option is "force directory mode = 2770". All the shares are working perfect . You set value the to 0770 what is the difference. ?
@CesarPeron
@CesarPeron 3 жыл бұрын
I need users to be able to add but not modify the current files, except for what they have added. In Windows what I did was give full control to the Creator Owner group, what should I change in the .config? thanks for the video
@jessemurdock2406
@jessemurdock2406 2 жыл бұрын
Yes, absolutely! Thank you!
@ironwolf3699
@ironwolf3699 2 жыл бұрын
Thank you! I wanted a way to locally backup my steam games and re download them faster when I need them.
@redstonemason
@redstonemason 2 жыл бұрын
Still works well on Debian 11 (Bullseye) in late 2021. My physical disk is a ZFS Mirrored Pool.
@countrygent36
@countrygent36 Жыл бұрын
outstanding explanation, thank you.
@chrisoddshoes
@chrisoddshoes 5 ай бұрын
Thank you, that helped a lot. Worked 1st time.
@tokoiaoben3842
@tokoiaoben3842 3 жыл бұрын
Thank you very much.can do a video on Samba active directory ?
@keithmiller9665
@keithmiller9665 Жыл бұрын
Very useful, thank you 😊
@jforbush
@jforbush 3 жыл бұрын
thank you very much! very helpful!
@ismailhanadi3105
@ismailhanadi3105 10 ай бұрын
thank you its helped me a lot.
@bpurgett100
@bpurgett100 11 ай бұрын
I did set this up, and it works just fine for what I do, does anyone know how to add an extra HDD to your SAMBA server? I can not find a good tutorial on how to make your shares as big as you want. Thanks.
@tonyfreehauf4463
@tonyfreehauf4463 3 жыл бұрын
great job - very clear & understandable - thank you - oldtony
@gligoratanasovski3329
@gligoratanasovski3329 3 жыл бұрын
Great video, had to say thanks!
@bassiedeclown5792
@bassiedeclown5792 3 жыл бұрын
Hi Jay, I have a few questions. I cannot find the file sharing option in POP_OS. Normally like in Mint it's in the files submenu or next to the properties of a folder. Any ideas? Secondly I would be interested in a video on what is the best compatible linux printer. My Dell Colour laserprinter can only function with the ia32.libs installed but I can not get them on the new distros. Not even on Manjaro. At least I cannot. So Iḿ thinking of buying a new colour laser printer in the budget class, or maybe an inktjet. Hope you can help or make a video? thnx! Bas
@MaxWeir
@MaxWeir 3 жыл бұрын
Does this work for the raspberry pi as wanting to setup a Plex server and use samba to access and transfer files to an external USB drive
@alfonsenasayao9822
@alfonsenasayao9822 3 жыл бұрын
Hi Jay please make a video on samba share about vfs objs= recycle and how to access on windows the recycle-bin folder. Thanks a lot. Greetings from Philippines.
@NickRO1989
@NickRO1989 3 жыл бұрын
Anyone know how to do this but to require a username and password to access share? I have a NAS with a wide open share but want to make it a little more secure
@ecuasteelo
@ecuasteelo 3 жыл бұрын
Great video. Well done.
@sotesz
@sotesz 3 жыл бұрын
(Just in case it wasn't intentional and you would want to correct it: the "Back up Samba config file" section's command seems incomplete on the wiki.)
@mason8714
@mason8714 3 жыл бұрын
was just about to make a comment about that
@HashedBahooz
@HashedBahooz 2 жыл бұрын
Hey great tutorials! I have proxmox thank to you! I have a question, can you do a tutorial of smb not from scratch?
@gfmoore
@gfmoore Жыл бұрын
Brilliant, life saver. I did have a problem seeing the server and then bam suddely it all appeared - is there a propogation delay, I wouldn't have thought so. Anyway next step...
@jusohjate6796
@jusohjate6796 3 жыл бұрын
Thank you Mr. Jay.
@chukwuuchethankgod1591
@chukwuuchethankgod1591 3 жыл бұрын
What is the prerequisite to this. Must the computers be connected first in any form of network?
@damianjames8148
@damianjames8148 4 ай бұрын
This is great. Now i can access my backup files from my proxmox server to save them in my cloud so i have multiple copies. Thanks
@fmj_556
@fmj_556 3 жыл бұрын
Is it possible to mount the shared folder on another linux server in the terminal?
@Dms_Kernel
@Dms_Kernel 3 жыл бұрын
Everything up to "connection to server "worked.But after that whichsoever way i tried i Couldn't connect to the server using my Ip in linux.Please help me.
@JohirulIslam-lm2vz
@JohirulIslam-lm2vz Жыл бұрын
Excellent ... Thanks a lot!
@v8racerman
@v8racerman 2 жыл бұрын
Hi Jay, I could not get this to work on an Ubuntu server server running within a Proxmox container (even with a privileged container), although it did work when I tried it on a stand-alone desktop running Linux Mint. Your Linux tutorials are the best on KZbin. As a thank-you, I will buy your Ubuntu Server Book! Thanks Jay!
@senadgalijasevic8568
@senadgalijasevic8568 2 жыл бұрын
Is this why I cant get this nonsense to work? Im running it in VirtualBox just to test it and no matter what I do nothing works.
@v8racerman
@v8racerman 2 жыл бұрын
Have a look at this video - he demonstrates the process with VirtualBox, like you are using. kzbin.info/www/bejne/fXLIp2SKl7SbhLs
@jaredlara2850
@jaredlara2850 Жыл бұрын
Jay you are my hero, keep it up dude 👌👌
@originaldanman
@originaldanman 2 жыл бұрын
Did everything the way you said exactly the way you explained it, double checking everything, all the commands syntax, etc... are exactly like you have her, but still not working. One problem I had was that when I did some of the commands I had to add the full directory for it to work. However when I checked the status, it said "system running" but gave me an error "ignoring unknown error "force directory mask". Still can't see find it from Windows, nor can I see any folders from my shares folder
@aminesbai926
@aminesbai926 Жыл бұрын
Hello! I know I am really late but did you find a solution? I searched everywhere and still can't solve this problem.
@himanshu-zu9li
@himanshu-zu9li 2 жыл бұрын
Sir i am new to this if suppose i wanted to add some files from my linus desktop to protected files how can i add do i have to change to writeble from server or other so i get access to it?
@robbiestonham4018
@robbiestonham4018 2 жыл бұрын
Earned a new sub. Great video!
@MonirulIslam-fc5lv
@MonirulIslam-fc5lv 3 жыл бұрын
thanks for helping us.
Getting started with Ansible 13 - Adding Users & Bootstrapping
24:35
Learn Linux TV
Рет қаралды 43 М.
How to Set Up an NFS Server on Ubuntu (Complete with AutoFS!)
36:30
Learn Linux TV
Рет қаралды 55 М.
Эффект Карбонаро и нестандартная коробка
01:00
История одного вокалиста
Рет қаралды 9 МЛН
I Can't Believe We Did This...
00:38
Stokes Twins
Рет қаралды 121 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 36 МЛН
Syncing your Files Across ALL your Computers via Syncthing
35:31
Learn Linux TV
Рет қаралды 76 М.
Your Old PC is Your New Server
11:07
Linus Tech Tips
Рет қаралды 6 МЛН
🔥 How to Setup Samba File Shares in Linux - [Quick and Easy]
14:50
SkillsBuild Training
Рет қаралды 42 М.
You're running Pi-Hole wrong! Setting up your own Recursive DNS Server!
18:02
File sharing on Windows is bad this is how to make it better
11:32
Chris Titus Tech
Рет қаралды 165 М.
Linux Fileserver: A Beginners Guide ...
9:24
Michael Horn
Рет қаралды 4,9 М.
Linux Command-Line Tips & Tricks: Over 15 Examples!
31:37
Learn Linux TV
Рет қаралды 214 М.
Samba on Linux is A Mess
12:21
The Linux Cast
Рет қаралды 8 М.
НЕ ПОКУПАЙ СМАРТФОН, ПОКА НЕ УЗНАЕШЬ ЭТО! Не ошибись с выбором…
15:23
ГОСЗАКУПОЧНЫЙ ПК за 10 тысяч рублей
36:28
Ремонтяш
Рет қаралды 478 М.
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 621 М.
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 57 МЛН