Ubuntu: Share folders on network - how to share files
Ubuntu is a Linux-based operating system. If you want to access a folder from multiple computers on the network or share photos or movies with family members, it is useful to be able to share folders on network. This method makes it easy to manage your files from anywhere.
How to prepare folder sharing on Ubuntu?
If several Ubuntu computers are connected to your network, it is convenient to facilitate access to desired content by sharing folders. This can be done with the additional service "Samba", which you can install from the official Ubuntu package. Proceed as follows:- Right-click on the desktop and select "Open Terminal".
- Enter "sudo apt-get install samba" into the console to install the program.
How do you share folders under Ubuntu?
You now configure the freshly installed program for network sharing. This works as follows:- Create a new configuration file with the command "sudo gedit/etc/samba/smb.conf".
- Place "[global]" in the next line of the configuration, then write the following per line respectively: "workgroup = smb", "security = share", "share modes = yes".
- Now add more commands - again per line: "[homes]", "comment = home directories", "browsable= no", "read only = no" and "create mode = 0750".
- Use the following commands to share the folder: "[public]", "path = (Specify the storage path of the desired folder here)", "writable = yes", "comment = smb share", "printable = no", "guest ok = yes".
- Save the configuration and restart Samba with "/etc/init.d/samba restart".
- You will now find the shared folder under "\\YOUR-IP-address\public".