How to map a shared folder in Ubuntu?
To map a shared folder in Ubuntu, you can follow these steps:
- First, make sure that you have installed the Samba software package, which you can install using the following command:
sudo apt-get install samba
- To create a folder to share, you can use the following command:
mkdir /path/to/sharedfolder
- Next, you can edit the Samba configuration file by using the following command:
sudo nano /etc/samba/smb.conf
- Add the following content at the bottom of the configuration file:
[shared]
path = /path/to/sharedfolder
writable = yes
guest ok = yes
read only = no
create mask = 0777
directory mask = 0777
- Save and exit the configuration file, then restart the Samba service.
sudo service smbd restart
- Finally, in Windows or other operating systems, you can access the shared folder by entering the IP address of Ubuntu and the shared folder name.
This completes the process of mapping a shared folder in Ubuntu.