Skip to main content

How to Share Files Between Windows and Linux

We’ve previously covered various ways to share files between nearby computers, but sharing between Windows and Linux can be a little more complex. This article will show you how to map shares across both operating systems for seamless file sharing.

There are basically two parts to this guide: Creating the shared folder on Windows and configuring Linux to access it, and creating the shared folder on Linux and configuring Windows to access it. Depending on your situation, you’ll want to follow the appropriate set of instructions. If, for some reason, you want to set up shared folders on both systems, you can do that, too. This guide will cover Windows 8.1 and Ubuntu, but we’ve made it adaptable to virtually any version of Windows or Linux.

Creating the Share on Windows

To set up a shared folder on Windows for Linux to access, start by making sure your network settings are configured to allow the connection from the other computer by opening the Network and Sharing Center.



In the Network and Sharing Center window, click on “Change advanced sharing settings.”



For your current profile, adjust the following two settings:
-       
  Turn on network discovery

- Turn on file and printer sharing




Click on “Save Changes” after those settings are configured. Now we can create a place on the Windows computer for the Linux machine to see files and copy contents to. There are no limitations to what you can share out (you could theoretically share your entire hard drive), but we will just be sharing out a folder called “Share” located on our Desktop.
Right click on the folder you’d like to share out over the network, and click Properties. Go to the Sharing tab and click Advanced Sharing.


Check the “Share this folder” box and click on “Permissions” toward the bottom.






In the Permissions window, you can restrict access to the folder for certain accounts. To let any user have access to your folder, just give Full Control to the Everyone user. This will allow anyone to read and write changes to the shared folder. If you would rather restrict access to certain accounts, just remove the Everyone user and add the users you’d like to grant access to. Note: These user accounts are on the Windows computer, not Linux.



Click OK on the Permissions and Advanced Sharing windows once you’ve made your changes. While still in the Properties menu, click on the Security tab.



For the Linux user to have access to the shared folder, the same permissions need to be configured in this tab as what we configured in the sharing settings.  If the two settings don’t match, the most restrictive settings are the ones that will take effect. If your desired user already has their security permissions set up (such as the geek user in our example) then you’re good to go and can click Close.
If you need to add a user, such as Everyone, click on Edit.


Click on Add in the next menu, enter the username, and click OK.


Click OK on all the open windows, and your folder should now be shared out and accessible on your Linux computer.

Accessing the Windows Share from Linux

You should be able to mount the shared folder by using the GUI in Linux, but it’s also very easy to do with the command line, and it’s easier to show a terminal example because it will work across many different distributions.
You’ll need the cifs-utils package in order to mount SMB shares:

Comments

Popular posts from this blog

Creating NLB Cluster Windows 2008 Server

Creating an NLB Cluster There are three key steps to creating an NLB cluster in Windows Server 2008: Install the NLB Feature into Server 2008 on each host that you will add to an NLB cluster. Use the New Cluster wizard to create the cluster and add the first host. Use the Add Host wizard to add one ore more nodes to your cluster Installing NLB in Server 2008 This is extremely easy. First you run Server Manager, and select Features from the tree and click on Add Features: From the Add Features wizard just select Network Load Balancing and click Next: Finally from the Confirm Installation Selections click Install: After a few seconds, NLB will be installed on the first host. You need to repeat this installation on each host you plan to add to your NLB Cluster. Installing the NLB feature does NOT require a reboot, but removing it does. Creating your NLB Cluster Once NLB is installed, you create your cluster by first bringing up the NLB Cluster Manager: The right c...

How To Setup a USB Flash Drive to Install Windows 7

If you have an ISO image of Windows 7, using Microsoft’s free utility is a quick and easy option to get the image on your USB flash drive. It requires XP SP2 or higher and if you’re using an XP machine you’ll need .NET Framework 2.0, and Microsoft Image Mastering API V2…both of which can be downloaded from the link below. It seemed to work best if I formatted the flash drive as NTFS before using the download tool. But that could be because of the flash drive I used…your mileage may vary.   It’s a pretty straight forward process, first browse to the location of your Windows 7 ISO file and click Next. Select USB device…this also helps you burn the ISO to DVD as well if you need that option. Choose your flash drive and click Begin copying. Now just wait for the process to complete. The drive will be formatted and files copied to the flash drive. When the process is finished you will be able to see the files on the flash drive as you would if you opened the installat...