Setting up Simple Samba File Shares

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 304

  • @martingjsmith
    @martingjsmith Рік тому +14

    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.

  • @dinnerandashow
    @dinnerandashow 4 роки тому +14

    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.

  • @wellbi
    @wellbi Рік тому +58

    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 8 місяців тому

      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 7 місяців тому +2

      OMG, hours trying to figure this out and this worked. Thank you so much!

    • @mitica1235
      @mitica1235 4 місяці тому

      lifesaver 👌

    • @_Viking
      @_Viking 3 місяці тому

      I can see the server in windows 10

    • @whatoh3407
      @whatoh3407 2 місяці тому

      Ah no wonder. Thanks.

  • @celo32390
    @celo32390 2 роки тому +9

    I’ve been scouring UA-cam 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 🙏

  • @michaelscofield4524
    @michaelscofield4524 Рік тому +18

    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.

  • @binarytrekker
    @binarytrekker 2 роки тому +1

    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

  • @jtreg
    @jtreg 3 роки тому +1

    this actually works. Not a given in UA-cam. Clear and concise. Subscribed, thanks man.

  • @The_Letter_E-t5q
    @The_Letter_E-t5q Рік тому +1

    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.

  • @BrianThomas
    @BrianThomas 4 роки тому +29

    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.

  • @sherakhela4044
    @sherakhela4044 4 роки тому +6

    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

  • @markh2827
    @markh2827 3 роки тому +4

    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

  • @metalxthrashingxmad1
    @metalxthrashingxmad1 3 роки тому +7

    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!

  •  8 місяців тому +1

    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

  • @zameerpashablr
    @zameerpashablr 2 роки тому +1

    I have watched at least 20 times ...Love to learn from you. At last did experiment creating samba server.

  • @yiannisspanos694
    @yiannisspanos694 4 роки тому +59

    Great video. Are you planning to make a video for "not so simple" file shares too?

  • @user-rc2ob2uo6p
    @user-rc2ob2uo6p 8 місяців тому +1

    First time I got a samba server working reliably. Thanks Jay

  • @markward4284
    @markward4284 4 роки тому +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.

  • @dewwright
    @dewwright 3 місяці тому

    Thank you. This step-by-step video with great explanations was exactly what I needed! Home server up and running Mint to Mint to Mint.

  • @Agustin-xs6ug
    @Agustin-xs6ug 5 місяців тому +1

    Worked as intended. I just turned a 2011 laptop into a home file server.
    Absolute madman, thank you so much

    • @christianvinarao5369
      @christianvinarao5369 5 місяців тому

      i opened my network an the folder is not showing

    • @Agustin-xs6ug
      @Agustin-xs6ug 5 місяців тому

      @@christianvinarao5369 Are you using windows? I read in another comment something about wsdd being necessary for windows systems to be able to access the server.

    • @memeier9894
      @memeier9894 22 дні тому

      ​@@christianvinarao5369same

  • @noweare1
    @noweare1 2 роки тому +1

    samba is kind of complicated but you made it much easier to understand and implement, thanks.

  • @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 Рік тому

      " 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?

  • @Farizno
    @Farizno 2 місяці тому

    Awesome video Jay. Thank you for this. I struggle with permissions in Linux and this helped me solve my Samba issue.

  • @Lanzetsu
    @Lanzetsu 4 роки тому +5

    This is one of the best videos about SAMBA I ever watched, thanks a lot!

  • @asaskald
    @asaskald 4 роки тому +2

    Thank you, Jay! This video pushed me to buy your Ubuntu Server book.
    Your channel is one of my favorites.

  • @BinayakKundu
    @BinayakKundu 4 роки тому +23

    Thanks Jay! Please make a video on samba sever with user name and password.

  • @tomashley9246
    @tomashley9246 2 роки тому +3

    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.

  • @zmgkbao5252
    @zmgkbao5252 Рік тому

    you don't know how much time you saved me 😭 Thankyou

  • @johnh10000
    @johnh10000 3 роки тому

    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

  • @jwatkins320
    @jwatkins320 8 місяців тому +2

    Worked first try. Thank you so much

  • @k.chriscaldwell4141
    @k.chriscaldwell4141 5 місяців тому +1

    Superb! Thanks. My only complaint/feedback is that you should pause a second or so after entering a Linux command before hitting enter. That way a newbie will have enough time to pause the video and enter the command. Not a biggie. Thank you.

  • @TheAlexander775
    @TheAlexander775 10 місяців тому +1

    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.

  • @_axlandrade
    @_axlandrade 3 роки тому +1

    Hey man, THANKS ! U literally just saved my life with this tutorial ! Keep up with the great job !

  • @quentinb9692
    @quentinb9692 2 роки тому

    Thanks, works awesomely. Other guides wasted my time trying to figure it out.

  • @silverthunderbird
    @silverthunderbird 3 роки тому +13

    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 2 роки тому

      Ok... and where do I ffind this IP address?

    • @AllAbout.Digital
      @AllAbout.Digital Рік тому +1

      @@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 Рік тому

      thank you very much I was confused

  • @Arelius.D
    @Arelius.D 8 місяців тому +1

    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?

  • @peterlaidlaw8655
    @peterlaidlaw8655 4 роки тому +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.

  • @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

  • @buba1234
    @buba1234 2 роки тому +1

    I broke my hand hitting my desk while setting samba up for 4h straight but your tutorial helped thank you.

  • @calvinlondt3037
    @calvinlondt3037 4 роки тому +5

    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.

  • @Ballistichydrant
    @Ballistichydrant 3 роки тому +1

    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.

  • @Yosip_777
    @Yosip_777 4 роки тому +10

    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

  • @damianjames8148
    @damianjames8148 10 місяців тому +1

    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

  • @eel64
    @eel64 Рік тому

    Thank you. You make Samba easy.

  • @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 )

  • @jsmrdck
    @jsmrdck 3 роки тому

    Yes, absolutely! Thank you!

  • @cgsquash
    @cgsquash 2 роки тому

    very clear explanation works perfectly

  • @Pananananananananify
    @Pananananananananify 4 роки тому

    Great explanation and example. Very straightforward

  • @redstonemason
    @redstonemason 3 роки тому +1

    Still works well on Debian 11 (Bullseye) in late 2021. My physical disk is a ZFS Mirrored Pool.

  • @obyrnedd
    @obyrnedd 2 роки тому +1

    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.

  • @keithmiller9665
    @keithmiller9665 Рік тому +1

    Very useful, thank you 😊

  • @ourkid2000
    @ourkid2000 4 роки тому +7

    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.

  • @verynice5258
    @verynice5258 2 роки тому +1

    Thank you.

  • @IanaL
    @IanaL 3 роки тому

    It works!!! Thank you very much.

  • @originaldanman
    @originaldanman 3 роки тому +3

    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 2 роки тому

      Hello! I know I am really late but did you find a solution? I searched everywhere and still can't solve this problem.

    • @sangeek
      @sangeek 3 місяці тому

      "sudo ufw allow samba" - maybe firewall on server blocking client machine

  • @pieinside2345
    @pieinside2345 Рік тому

    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 :)

  • @v8racerman
    @v8racerman 3 роки тому

    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 UA-cam. As a thank-you, I will buy your Ubuntu Server Book! Thanks Jay!

    • @v8racerman
      @v8racerman 3 роки тому

      Have a look at this video - he demonstrates the process with VirtualBox, like you are using.
      ua-cam.com/video/GAev1TbOhNY/v-deo.html

  • @chrisoddshoes
    @chrisoddshoes 11 місяців тому

    Thank you, that helped a lot. Worked 1st time.

  • @Notyourbusinesschap
    @Notyourbusinesschap 11 місяців тому

    Thank you! Everything works great!

  • @LorenzoPena
    @LorenzoPena 4 місяці тому

    thank you very much. Again a very instructive video. I've learnt a lot.
    Have you mentioned "sudo ufw allow samba"? I'm not sure.
    Best wishes

  • @countrygent36
    @countrygent36 2 роки тому

    outstanding explanation, thank you.

  • @jaybienick4926
    @jaybienick4926 2 роки тому

    VERY GOOD tutorial, thank's!

  • @jaredlara2850
    @jaredlara2850 2 роки тому

    Jay you are my hero, keep it up dude 👌👌

  • @rebeljt
    @rebeljt 9 місяців тому

    Awesome video! Helped me a ton!

  • @scottroth6273
    @scottroth6273 2 роки тому

    Awesome - you made it so easy! Thanks.

  • @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.

  • @RCTurbine
    @RCTurbine 4 роки тому

    Very helpful, useful video - Thanks so much for sharing

  • @phaedrus2633
    @phaedrus2633 4 роки тому +2

    I'm a beginner web developer who designs my web pages on my Windows 10 desktop. I'm implementing samba so that I can work on my web pages with my Ubuntu 20.04 notebook. So, I want to be able to transfer files from my Windows 10 desktop, to my Ubuntu 20.04 notebook. I followed all of the steps in this video, it works fine on my Ubuntu notebook, but, I still cannot see it from my Windows 10 desktop. I've never found a single tutorial video, that is reliable in explaining how to troubleshoot this issue.

  • @tonyfreehauf4463
    @tonyfreehauf4463 3 роки тому +1

    great job - very clear & understandable - thank you - oldtony

  • @keithmiller9665
    @keithmiller9665 3 місяці тому

    Nice! Very helpful 😊🎉❤

  • @Jose-tw9bl
    @Jose-tw9bl 3 роки тому

    Thank you for the video! very clear and detailed explanation

  • @jusohjate6796
    @jusohjate6796 3 роки тому

    Thank you Mr. Jay.

  • @TRAMETOOLS
    @TRAMETOOLS 4 роки тому +2

    Great class. Thanks!!!

  • @michaelb7087
    @michaelb7087 4 роки тому

    This helped allot. Thanks for the step by step

  • @Moses_coder
    @Moses_coder Рік тому

    Great. Learnt a lot thank you.

  • @isellcuddlesessions66
    @isellcuddlesessions66 4 роки тому

    Really great video. Thanks a bunch.

  • @Farang_Lifestyles
    @Farang_Lifestyles 3 роки тому

    Excellent video,,, clear precise with a link to a created wiki... very professional touch.... earned my sub-channel

  • @NerdonWheels
    @NerdonWheels 3 роки тому

    Fantastic guide. Thank you!

  • @leighhorton2806
    @leighhorton2806 4 роки тому

    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.

  • @xforney
    @xforney Місяць тому

    How did you copy, I wish you would have told us. Still great video..

  • @AbarSimorgh
    @AbarSimorgh 2 роки тому

    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?

  • @ZigZagNusran
    @ZigZagNusran 3 роки тому

    Thanks to sharing the vedio

  • @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...

  • @ismailhanadi310
    @ismailhanadi310 Рік тому

    thank you its helped me a lot.

  • @burdebc1
    @burdebc1 4 роки тому +2

    With Samba, is it possible to allow anyone to add files and download them, but not delete files? I was thinking this would work well for setting up a family photo repository where people could come by and add their pictures to it and download anything they wanted, without having to worry about curious kids deleting everything.

    • @serge5046
      @serge5046 4 роки тому +2

      As root with chattr add the immutable option (+i) to all the files: linux.die.net/man/1/chattr
      Otherwise you could use create mask and directory mask or the force create mode and force directory mode.
      Or you could use sticky bits and ACL's as explained here: www.thegeekdiary.com/how-to-force-user-group-ownership-of-files-on-a-samba-share/

  • @IoTRepublic
    @IoTRepublic 2 роки тому

    Excellent ... Thanks a lot!

  • @kc3kop915
    @kc3kop915 3 роки тому +1

    I followed this except for the workgroup name and path names and windows sees the shares but keeps asking for a log in and nothing works. do you have any ideas?
    Ian

    • @jorgemode
      @jorgemode 3 роки тому

      Im in the same situation. I followed this exept for the workgroup, and im on linux, and I cant acces of any of the public or private folders.

  • @MonirulIslam-fc5lv
    @MonirulIslam-fc5lv 3 роки тому

    thanks for helping us.

  • @jzky
    @jzky 6 місяців тому

    thanks.. been searching for how to add multiple folders..

  • @ForrestRhoads
    @ForrestRhoads 4 роки тому

    Very good video. I use sshfs for most everything now though, whether home network or remote access to it.

  • @techtrovehq
    @techtrovehq 9 місяців тому

    You just save me. Thank you.

  • @eddyizm
    @eddyizm 3 місяці тому

    I wish there was a video on creating a smb share of an existing folder to access with the same account. eg private and not public and without creating a new user and using the built in permissions.

  • @gordian99
    @gordian99 Рік тому

    This was very helpful.

  • @luckyhomestead
    @luckyhomestead 3 місяці тому +1

    It's not working on Linux Mint 22. For some reason folder is not shared at all (folder is in diferent ssd)

  • @himanshu-zu9li
    @himanshu-zu9li 3 роки тому +1

    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?

  • @mekuranda
    @mekuranda 4 роки тому +2

    I would like to know if there is a GUI way of doing the same things- I would like to be able to access files or directories between virtual machines and hosts and even a router with an attached USB drive.
    I am sure that the power users or Linux elite will say just learn to use CLI - I am not that confident in my typing and understanding even though Jay took extra time to explain the reasoning behind each line - I still love a GUI way of dealing with complex setups - helps me with the "Big Picture"

    • @HelloHelloXD
      @HelloHelloXD 4 роки тому

      WEBMIN?

    • @mekuranda
      @mekuranda 4 роки тому

      @@HelloHelloXD is that an APP?

    • @serge5046
      @serge5046 4 роки тому +1

      @@mekuranda yes and it is quite useful: www.webmin.com/

  • @randomizerkid
    @randomizerkid Місяць тому +1

    when i clicked on public folder on the network it says unable to access location "failed to mount windows share: no such file or directory

    • @Robertjaymercer
      @Robertjaymercer Місяць тому

      Same here, it used to work just fine but now it gives me that message too

  • @Joshuahs
    @Joshuahs 3 роки тому +1

    The permissions part of this gives me trouble. I was able to get it working just as this video showed but the file had to be outside of my user folder. When I try to create a share within my home user folder because I have forced user smbuser my regular account does not have permission to access that folder, it shows a red X in the file explorer.

    • @noweare1
      @noweare1 2 роки тому

      Add your home user to the group smbgroup and that should take care of it.

  • @robbiestonham4018
    @robbiestonham4018 3 роки тому

    Earned a new sub. Great video!

  • @AUTG
    @AUTG 5 місяців тому +1

    For a general overview, I have made a general summary of the commands that I use to create samba and network drives :)
    sudo apt install samba
    sudo service smbd start
    sudo smbpasswd -a [user]
    /etc/samba/smb.conf
    sudo apt install cifs-utils
    mount //[srv]/[share] /mount/netz -t cifs -o user=[user],password=[pwd]
    //[srv]/[share] /mount/netz cifs -o user=[user],password=[pwd] 0 0

  • @JoshuaRieth
    @JoshuaRieth 2 роки тому

    Thanks! I was trying to get it set up and it turned out it was the directory's permission!