How to share a folder on Ubuntu to access from Windows 10

Do you have two machines one is running on Ubuntu and other using Windows 10 or 7 OS? If  Yes, then you might need to access some folder or files resides on the Ubuntu system. However, usually, to transfer files or folder, we use USB drive but what about Network Share. If both the machines are on the same network then it would be a great idea to set up a sharing protocol such as SAMBA. This will not only allow to access you the files on Linux Machine directly over Ethernet or WiFi but also save your time.

Actually, I have one testing machine that is running on Ubuntu 20.04 Foocal fossa and the other one uses Windows 10, thus to easily access all the data such as screenshots captured on Linux, I have shared the Pictures folder. Although we have used Ubuntu 20.04, the steps will be the same for Ubuntu 19.04/18.04 LTS as well.

With the following steps you can share any of the existing folders of Ubuntu with Windows 10 0r 7:

Share Ubuntu folder on SAMBA

  1. Open Ubuntu’s File Manager.
  2. Right-click on the folder that you want to share.
  3. Here we are sharing the Pictures folder of our Ubuntu 20.04 LTS PC.
    Share folder with SAMBA on Ubuntu
  4. Select the Properties option.
  5. Click on the Local Network Share TAB.
  6. Select the box given in front of the option “Share this folder“.
  7. A pop-up will appear to install the SAMBA package on the system. Install it by providing your current account user password.
  8. By default, the Share name will be the name of the folder. However, you can change it whatever you want.
  9. Next, mark the “Allow others to create and delete files in this folder” option. If you want to write the files to the shared location remotely.
  10. Another option is “Guest access (for people without a user account“. By default, the users with an account can access the shared folders. In case, you want to allow anonymous users to access them, check this one otherwise leave it. However, if you are locally accessing the folder then check it for easy access.
    Create SAMBA share on Ubuntu 20.04 and windows 10
  11. Finally, click on the Modify Share button and allow the setup to set permissions for the Ubuntu shared folder or files.
    Give SAMBA Share permissions
  12. Open Command Terminal.
  13. Type: ifconfig
  14. And note down the IP address of your machine.

 

Access the Ubuntu shared folder on Windows 10 remotely

  1. On the Windows 10 or 7, open MyComputer.
  2. Right-click anywhere on the blank space and select “Add a Network Location“.
    Add network location
  3. Network location wizard will open, click on the “NEXT” button.
  4. Select “Choose a custom Network location” option.
  5. Add the address of the folder shared on the Ubuntu. For that type \\ip-address-ubuntu\shared-folder name
  6. For example, in our case, the system IP address was- 192.168.0.107 and the shared folder named “Pictures”. Thus, the address will be \\192.168.0.107\Pictures
    Share Ubuntu on Windows 10 using SAMBA protocol
  7. In the same way, you also have to add the address and click on the Next button.
  8. Windows will automatically find the share Ubuntu folder and add it.
    specify Shared folder locations and Ip address
  9. Now, go to the Windows 10 or 7 MyPC area and start accessing the shared Ubuntu folder and files via SAMBA protocol.
    start accessing the shared Ubuntu folder and files via SAMBA protocol

 

 

 

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.