How to configure a file sharing folder in Samba on Ubun…

To configure a Samba shared folder in Ubuntu, you can follow these steps:

  1. Install Samba service.
sudo apt-get update
sudo apt-get install samba
  1. Create a shared folder:
sudo mkdir /path/to/shared/folder
  1. Setting up Samba:
sudo nano /etc/samba/smb.conf

Add the following content at the end of the file, where share_name is the name of the shared folder and path is the path of the shared folder.

[share_name]
   comment = Shared Folder
   path = /path/to/shared/folder
   browseable = yes
   read only = no
   guest ok = yes
   create mask = 0644
   directory mask = 0755
  1. Add Samba users:
sudo smbpasswd -a username

The username is the username of the Samba user to be added, and you will be prompted to enter a password.

  1. Restart the Samba service:
sudo systemctl restart smbd

You can now access the shared folders on Ubuntu from other computers through Samba. Simply enter \\ubuntu_ip_address\share_name in the address bar of the file explorer, then input the Samba username and password to access the shared folder.

bannerAds