Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Share Files Across Your Network from Linux GUIs

· 6 min read · Home Networking

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can share files across your network from popular Linux desktop environments without touching the terminal. The exact menus differ by distribution and file manager, but the core steps are the same: enable sharing services, right-click a folder, set permissions, and connect from another device. This guide covers GNOME Files (Nautilus), KDE Dolphin, and Xfce Thunar.

What You'll Need

  • Two or more devices on the same local network (Wi‑Fi or wired).
  • One Linux machine with a GUI file manager (GNOME Files, Dolphin, or Thunar).
  • Samba installed on the sharing machine (most distributions include it, but you may need to install it).
  • For connecting from Windows, Samba is required; for Linux‑to‑Linux, you can also use SSH or NFS, but this guide focuses on Samba.

Step-by-Step

  1. Install Samba (if not already installed). Open your software center (e.g., “Software” on Ubuntu, “Discover” on KDE) and search for “Samba”. Install the package named samba or samba-common. On Debian/Ubuntu, you can also run sudo apt install samba in a terminal, but the GUI method works too.
  2. Enable the Samba service. After installation, the Samba service (smbd) usually starts automatically. To verify, open your system settings and look for “Sharing” or “Network”. If you see a toggle for file sharing, turn it on. If not, you can start it from the terminal with sudo systemctl start smbd and enable it with sudo systemctl enable smbd.
  3. Open your file manager. The steps differ slightly by file manager:
  4. GNOME Files (Nautilus): Right‑click the folder you want to share, select Local Network Share (or Sharing Options). Check the box “Share this folder”. Give it a share name (e.g., “Documents”). Check “Allow others to create and delete files in this folder” if you want write access. Check “Guest access” if you want to allow access without a password (not recommended for sensitive data). Click Create Share. If prompted, confirm to add permissions.
  5. KDE Dolphin: Right‑click the folder, choose Properties, then the Share tab. Check “Share this folder”. Enter a share name. Choose whether to allow others to write, and whether to allow guest access. Click OK. If the option is greyed out, you may need to install kdenetwork-filesharing (or the equivalent package for your distribution).
  6. Xfce Thunar: Right‑click the folder, select Sharing Options (this requires the thunar-shares-plugin package). Check “Share this folder”. Set a share name, enable “Allow others to write” if needed, and choose guest access. Click Create Share.
  7. Note on menu labels: The exact wording may differ slightly by distribution and version. For example, Ubuntu’s GNOME Files may say “Local Network Share” while Fedora’s says “Sharing Options”. If you don’t see a sharing option, the plugin isn’t installed—see Common Mistakes.
  8. Set permissions on the folder. After sharing, the file manager will ask if you want to modify permissions. Accept it. This ensures the Samba user can access the folder. If you skip it, you may get “permission denied” errors.
  9. Connect from another device. On another Linux machine, open your file manager and go to “Network” or “Browse Network”. You should see the host machine. Double‑click it, then double‑click the shared folder. If you set guest access, you can connect without a password. Otherwise, you’ll need a Samba username and password—see Tips.
  10. Connect from Windows. Open File Explorer, click “Network” in the sidebar, and find the Linux machine. If it doesn’t appear, type \\ in the address bar (replace with the Linux machine’s IP). Enter the Samba credentials when prompted.
  11. Connect from macOS. In Finder, press Cmd+K, then type smb:// and press Enter. Enter the Samba credentials.

Common Mistakes

  • Sharing option missing: In GNOME Files, the “Local Network Share” option is only available if the nautilus-share package is installed. In Thunar, you need thunar-shares-plugin. Install these from your package manager.
  • Firewall blocking: Most Linux distributions have a firewall (ufw or firewalld) that blocks Samba by default. If you can’t connect, allow Samba through the firewall. In Ubuntu, run sudo ufw allow samba. In Fedora, use sudo firewall-cmd --add-service=samba --permanent and reload.
  • Wrong permissions: If you get “permission denied” when accessing the share, the folder’s Linux permissions don’t allow the Samba user to read/write. Make sure the folder is accessible by the user you’re logging in as, or choose “Guest access” and set the folder permissions to allow others.
  • Using the wrong IP: If you can’t find the host by name, use its IP address. Find it with ip a in a terminal, or look in your router’s admin page.
  • Not restarting Samba: After changing Samba configuration (if you edited config files), you need to restart the service: sudo systemctl restart smbd.

Tips

  • Set a Samba password: By default, Samba uses the system user’s password, but you can set a separate Samba password with sudo smbpasswd -a . This is useful if you don’t want to share your system password.
  • Use guest access only on trusted networks: Guest access means anyone on your network can read/write without a password. Use it only on home networks you trust.
  • Share a folder, not your home directory: Sharing your entire home folder exposes all your personal files. Create a dedicated “Shared” folder and share that.
  • For Linux‑to‑Linux, consider SSH: If both machines are Linux, you can use SSH file transfer (sftp) which is more secure and doesn’t require Samba. Most file managers support connecting to sftp://.
  • Name your share clearly: Use a name without spaces, like “SharedDocs”, to avoid connection issues on some clients.

Troubleshooting

If you can’t see the shared folder from another device:

  1. Check that both devices are on the same subnet (e.g., both 192.168.1.x).
  2. Verify the Samba service is running: sudo systemctl status smbd (or nmbd for network browsing).
  3. Try connecting by IP address instead of hostname: smb://192.168.1.100 (Linux) or \\192.168.1.100 (Windows).
  4. Disable the firewall temporarily to test: sudo ufw disable (re‑enable after testing).
  5. If you still can’t connect, check the Samba configuration file /etc/samba/smb.conf for syntax errors with testparm.

If you get “permission denied” when accessing the share:

  1. Ensure the folder’s Linux permissions allow the Samba user. For example, if you’re using guest access, the folder must be readable by “others”.
  2. If you’re using a specific user, make sure that user has a Samba password set (sudo smbpasswd -a ).
  3. Check the share’s write permission settings in the file manager—you may have unchecked “Allow others to write”.

If the sharing option is greyed out or missing:

  1. Install the appropriate plugin: nautilus-share for GNOME, kdenetwork-filesharing for KDE, thunar-shares-plugin for Xfce.
  2. Log out and back in, or restart the file manager.

Frequently Asked Questions

Do I need Samba to share between two Linux machines?

No. You can use SSH (sftp) or NFS. Samba is needed only if you’re sharing with Windows or macOS. For Linux‑to‑Linux, SSH is often simpler and more secure.

How do I find my IP address?

Open a terminal and type ip a (or ifconfig). Look for the address under your network interface, usually starting with 192.168. or 10.0.

Can I share a folder that is on an external drive?

Yes, but you must ensure the drive is mounted and the folder permissions allow access. Also, if the drive is formatted as NTFS, you may need to mount it with proper permissions—check your distribution’s documentation.

Is guest access safe?

Guest access allows anyone on your network to access the share without a password. It’s safe only on a trusted home network. For any sensitive data, require a password.

Why can’t I see the shared folder in Windows File Explorer?

Windows sometimes has trouble discovering Samba shares automatically. Try typing \\ in the address bar. Also, make sure the Samba service is running and the firewall allows SMB traffic.

How do I stop sharing a folder?

Right‑click the folder, go to sharing options, and uncheck “Share this folder”. This removes the Samba share definition.