Sharing a Folder With Samba on Unity

Sharing folders using Samba on a Unity desktop environment is a convenient way to enable file sharing between Linux and Windows systems. Samba is an open-source software suite that provides seamless integration between Linux/Unix servers and Windows clients. Here’s a step-by-step guide on how to share a folder using Samba in the Unity desktop environment:

Step 1: Install Samba

If you haven’t already, you need to install Samba on your system. Open a terminal and run the following command to install Samba:

1
sudo apt-get install samba

Step 2: Configure the Samba Share

  1. Create the Shared Folder: Right-click on the folder you want to share in the Unity file manager and select “Local Share”. This will open the folder’s properties dialog.

  2. Sharing Options: In the properties dialog, navigate to the “Local Network Share” tab or similar. Here you can configure the sharing options for the folder.

  3. Share Name: Give your share a name that will be visible to other devices on the network.

  4. Guest Access: You can choose to allow guest access or require a username and password.

  5. Permissions: Configure the permissions for the shared folder, specifying who can read or write to it.

Step 3: Add Samba User

  1. Create a Samba User: To allow access to the shared folder, you need to create a Samba user. In the terminal, use the following command:
1
sudo smbpasswd -a username

Replace “username” with the actual username you want to use for Samba access.

  1. Set Password: You will be prompted to set a password for the Samba user. This password will be used when accessing the shared folder from other devices.

Step 4: Restart Samba Service

After making these configurations, it’s recommended to restart the Samba service to apply the changes. Run the following command in the terminal:

1
sudo service smbd restart

Accessing the Shared Folder from Other Devices

Once the folder is shared using Samba, you can access it from other devices on the same network. On Windows, you can use the file explorer and enter the path to the shared folder (e.g., \\<Linux-IP>\sharename). You’ll be prompted to enter the Samba username and password you created earlier.

Remember that Samba configuration can vary based on your specific system and network setup. These steps should provide a general guideline for sharing a folder using Samba in the Unity desktop environment.

0%