- Open Ubuntu’s File Manager.
- Right-click on the folder that you want to share.
- Here we are sharing the Pictures folder of our Ubuntu 20.04 LTS PC.
- Select the Properties option.
- Click on the Local Network Share TAB.
- Select the box given in front of the option “Share this folder“.
- A pop-up will appear to install the SAMBA package on the system. Install it by providing your current account user password.
- By default, the Share name will be the name of the folder. However, you can change it whatever you want.
- 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.
- 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.
- Finally, click on the Modify Share button and allow the setup to set permissions for the Ubuntu shared folder or files.
- Open Command Terminal.
- Type: ifconfig
- And note down the IP address of your machine.
- On the Windows 10 or 7, open MyComputer.
- Right-click anywhere on the blank space and select “Add a Network Location“.
- Network location wizard will open, click on the “NEXT” button.
- Select “Choose a custom Network location” option.
- Add the address of the folder shared on the Ubuntu. For that type \ip-address-ubuntu\shared-folder name
- 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
- In the same way, you also have to add the address and click on the Next button.
- Windows will automatically find the share Ubuntu folder and add it.
- Now, go to the Windows 10 or 7 MyPC area and start accessing the shared Ubuntu folder and files via SAMBA protocol.