How to Set Up Samba for Windows-Linux File Sharing: Linux Server Training 101

Video is ready, Click Here to View ×

In this Linux Samba tutorial video, you’ll learn how to configure a Linux file server to share resources with Windows clients. See a step-by-step demonstration of how to configure a Linux file server, using command-line tools. Modify the samba.conf file using the VI text editor, including default shares and a custom share for Windows clients.


  1. This is a good tutorial, I would love to see an updated version of this, my on gripe is that you have clearly set this up ahead of time, and skipped some things, like what Interface address is? I am little confused to what Interface address is?

  2. i get a connection time out error when i try try to copy files to and from a network file share at work via linux i can write to the drive and delete in this case just get a time out error… any advice?

  3. Hi
    how can i fix this error
    so plz help

    {{check the spelling of the name otherwise, there might be a problem with your network to try to identify and resolve network problems click,Diagnose}}

  4. Hi, thank you very much for this video. I hope you are still reading posts because I am desperate for some help. I have set up a file server using a Raspberry Pi 3 Model B with a Raid 0 Array. The array is mounted on at /mnt/media. I have everything working and can see the file server in windows 10 but when I try to add a folder I am getting a "You need permission to perform this action" message. I have a user on my Windows 10 machine and the Raspberry Pi named <someusername> with the same password. My suspicion is that the /mnt/media folder is not "owned" by <someusername> but I am not sure how to check or if that is even the case. Hope you see this and can help. Again thanks for the very good video!!

  5. I had to overcome a few problems before I got things going. Those are: 1) the /etc/hosts file in my Windows 7 machine needed the entry for the IP of my Samba server 2) My Windows machine being part of a domain, confused me. But i noticed from your notes that "workgroup = <<domain Name>> would do just fine 3) My hosts allow entry was wrong. 4) My client needed virtualization to be turned on at the Boot Level
    I think that was it. If not for your tutorial, I would not have made it.

  6. I also ran the following commands to open up firewall ports:
    firewall-cmd –permanent –add-port=137/tcp
    firewall-cmd –permanent –add-port=138/tcp
    firewall-cmd –permanent –add-port=139/tcp
    firewall-cmd –permanent –add-port=445/tcp

    and these commands are from the following source, which I was following before I started following your video.

    I could not get his instructions working either, but your tutorial filled up many holes

  7. I just pinged my Samba server in the Virtual Machine from my Windows 8 machine: is the IP for the Virtual Machine CentOS Samba server. Does that look ok?


    Pinging with 32 bytes of data:
    Reply from bytes=32 time<1ms TTL=64
    Reply from bytes=32 time<1ms TTL=64
    Reply from bytes=32 time<1ms TTL=64
    Reply from bytes=32 time<1ms TTL=64

    Ping statistics for
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

  8. Hi
    I have been following your instructions for the past couple hours and I have found it to very informative. However at the last step everything fails. Windows tells me it cannot find my IP. I have CentOS 7 in a VirtualBox VM and the IP is: I think I followed all of your instructions to the letter. What might I be missing?

  9. Very clear and lucid description of Samba. I learned a lot from this video. Thanks! In addition, thanks for pdbedit -L at 10.20, and for explicitly describing the vim commands as they were used.

  10. Excellent training video! Very clear voice and speech, well organized and good use of screen mirror.

    Unfortunately, it looks like I've been barking up the wrong tree – I'm trying to get at the printer and files on my Windows machine from a Linux box. I can see the Windows Network and Workgroup but when I try to browse inside the Workgroup I'm being thwarted by a login dialogue.

    Any suggestions?

  11. Excellent tutorial (easy and concise). I was having issues with Xubuntu and KVM sharing to my Windows Guests, but this resolved it (I forgot to add the samba firewall rules, doh!). Thanks!

Leave a Reply

Your email address will not be published.