Folder sharing allows people to access your files and folders from other machines in a local area network. Appropriate permissions can be set to the shared folder so that it can't be viewed or edited by an unauthorized person. Shared folders in Ubuntu can be accessed by people using Windows, macOS, or any other Linux distributions.
Folder sharing in Ubuntu or Linux is made possible by the Samba package. Samba implements SMB/CIFS protocol required to set up folder sharing that is compatible with the implementation of the same protocol in other operating systems.
You can create a shared folder in Linux by manually installing and configuring Samba. Ubuntu makes it easier by allowing you to share folders directly from the Files file manager application.
This will install Samba and other related packages.
Click on the Description to view more details about the packages to be installed
Your account must have administrator privilege to be able to proceed.
$ sudo ufw allow samba [sudo] password for user: Rules updated Rules updated (v6)
This is only required if you've enabled firewall. It is disabled by default.
Comment anonymously. Login not required.