How can I create a shared folder in Ubuntu?
There are multiple ways to create a shared folder on Ubuntu, one common method is as follows:
- First, create a new folder in the terminal using the following command:
- create a folder called shared_folder
- Next, install the Samba software package, which allows you to create Windows shared folders on Ubuntu. Use the following command for installation:
- Update the system and then install Samba using the following commands:
sudo apt update
sudo apt install samba - After the installation is complete, edit the Samba configuration file. Open the configuration file using the following command:
- Use the command “sudo nano /etc/samba/smb.conf”
- Add the following content to the end of the file:
- – The shared folder path is located at /path/to/shared_folder and is available with read and write permissions. Your_username is the valid user with full access to the shared folder, which is also publicly accessible and visible for browsing.
- Replace /path/to/shared_folder with the actual shared folder path.
- Save and close the file. Then, restart the Samba service to apply the changes.
- Restart the smbd service using sudo.
- Your shared folder has been created and is now accessible on the network.
Please ensure that your users have appropriate access permissions and have been added to the “valid users” list in the Samba configuration file.