How To Share Files Between Linux And Windows
We've previously covered various ways to share files between nearby computers, only sharing betwixt Windows and Linux tin can exist a little more complex. This commodity will prove you how to map shares beyond both operating systems for seamless file sharing.
RELATED: How to Hands Share Files Between Nearby Computers
There are ii parts to this guide. In the first part, we'll create a shared folder on Windows, and then configure Linux to admission that share. In the second role, nosotros'll create a shared binder on Linux and configure Windows to admission the share. Depending on your situation, you'll want to follow the advisable set of instructions. If, for some reason, y'all desire to set up shared folders on both systems, yous tin can do that, too. We're using Windows 10 and Ubuntu for our examples, but we've made the instructions adaptable to pretty much any version of Windows or Linux.
Selection One: Create a Share on Windows and Access Information technology From Linux
To brand this work, we'll be taking three steps. Start, we'll brand sure sharing is enabled on Windows. Once it is, we'll share the bodily binder. And then, we'll expect at how to access that binder from a Linux system.
Step One: Make Sure Sharing is Enabled in Windows
To set upward a shared binder on Windows for Linux to access, outset by making sure your network settings are configured to permit the connection from the other computer by opening the Network and Sharing Eye. The easiest style to do this is to right-click the network icon in your system tray and choose "Open Network and Sharing Middle."
In the Network and Sharing Center window, click on "Change avant-garde sharing settings."
For your electric current profile, brand certain the following two settings are enabled:
- Turn on network discovery
- Turn on file and printer sharing
When you lot're done, click "Salve Changes."
Step Two: Share the Folder
Now that sharing is enabled, we can create the shared folder for the Linux machine to see. At that place are no limitations to what you can share (you could theoretically share your entire hard bulldoze), only here, we'll just be sharing a folder named "Share" that is located on our Desktop.
Correct-click the folder you want to share over the network, and so click "Properties." On the "Sharing" tab of the properties window, click the "Advanced Sharing" button.
In the "Advanced Sharing" window that opens, enable the "Share this binder" option, and and so click the "Permissions" button.
In the permissions window, you lot can restrict access to the folder to certain accounts. To let whatsoever user have access to your folder, just give the "Full Control" permission to the "Everyone" user. This allows anyone to read and write changes to files in the shared binder. If you would rather restrict access to certain accounts, just remove the Everyone user, add together the users you lot want, and and then assign them appropriate permissions.
Note: These user accounts are on the Windows computer, non Linux.
When you're washed setting up users and permissions, click "OK" to close the permissions window and then click "OK" again to shut the "Advanced Sharing" window.
Back in the main properties window, switch over to the "Security" tab.
For the Linux user to have access to the shared folder, you need to configure the same permissions here that you configured in the sharing settings. If the two settings don't match, the most restrictive settings volition take event. If your desired user already has their security permissions set up (such as the geek user in our example) then yous're good to go. You can close the window and movement on to the next stride.
If y'all do need to add a user, such as "Everyone," click the "Edit" button.
In the permissions window that opens, click the "Add" button to enter the new user'southward details.
Click "OK" on all the open up windows, and your folder should now be shared with the network.
Stride Three: Admission the Windows Share from Linux
You should be able to mount the shared binder by using the GUI in Linux, but information technology's also very easy to practise with the control line. Nosotros're going to use terminal for our examples not simply because it's quicker, but considering it will work beyond many different distributions.
Get-go, you'll need the cifs-utils bundle in order to mount SMB shares. Simply type the following control at the terminal:
sudo apt-get install cifs-utils After that, just brand a directory, and then mount the share to it. In this example, nosotros will create the binder on our Desktop for easy access. Use these commands to create and mount the folder:
mkdir ~/Desktop/Windows-Sharesudo mountain.cifs //WindowsPC/Share /habitation/geek/Desktop/Windows-Share -o user=geek
As you can see in the screenshot, nosotros were prompted for the root countersign of the Linux machine, and then for the password of the "geek" account on Windows. After running that command, we are now able to run into the contents of the Windows share and add information to it.
In case you need help agreement the mount control, here's a breakup:
- sudo mountain.cifs: This is just the mountain command, prepare to mount a CIFS (SMB) share.
- WindowsPC: This is the name of the Windows reckoner. Type "This PC" into the Kickoff carte du jour on Windows, right click it, and become to Properties to run into your computer name.
- //Windows-PC/Share: This is the full path to the shared folder.
- /home/geek/Desktop/Windows-Share: This is where we'd like the share to be mounted on the Linux organization.
- -o user=geek: This is the Windows username that we are using to admission the shared folder.
Option Two: Create a Share on Linux and Access Information technology from Windows
Creating a share on Linux then accessing it from Windows is actually a bit easier than the other way around. Offset, we'll create the shared folder on the Linux system. Then, we'll look at how to access it from a Windows PC.
Footstep One: Create the Share on Linux
To fix a shared folder on a Linux that Windows to access, first with installing Samba (software that provides access to SMB/CIFS protocols used by Windows). At the last, use the following command:
sudo apt-get install samba After Samba installs, configure a username and password that will exist used to access the share:
smbpasswd -a geek Note: In this example, we are using 'geek' since we already accept a Linux user with that name, just you can choose any name y'all'd like.
Create the directory that you'd like to share out to your Windows calculator. Nosotros're just going to put a folder on our Desktop.
mkdir ~/Desktop/Share Now, apply your favorite editor to configure the smb.conf file. Nosotros're using Vi here.
sudo vi /etc/samba/smb.conf Roll down to the end of the file and add together these lines:
[<folder_name>]path = /habitation/<user_name>/<folder_name>available = yesvalid users = <user_name>read only = nobrowsable = yespublic = yeswritable = yes
Manifestly, you'll need to supercede some of the values with your personal settings. It should expect something similar this:
Save the file and close your editor. Now, you but need to restart the SMB service for the changes to take upshot.
sudo service smbd restart Your shared binder should now be accessible from a Windows PC.
Step Ii: Access the Linux Share from Windows
Now, let'southward add the Linux share to our Windows Desktop. Right-click somewhere on your Desktop and select New > Shortcut.
Blazon in the network location of the shared folder, with this syntax:
\\IP-Accost\SHARE-Proper name
Note: If y'all need the IP of your Linux computer, just use the ifconfig command at the terminal.
In the shortcut wizard on the Windows PC, click Side by side, choose a name for the Shortcut, and and so click Finish. Yous should cease up with a Shortcut on your Desktop that goes right to the Linux share.
How To Share Files Between Linux And Windows,
Source: https://www.howtogeek.com/176471/how-to-share-files-between-windows-and-linux/
Posted by: nicholsonmusere.blogspot.com

0 Response to "How To Share Files Between Linux And Windows"
Post a Comment