Ora

How to Connect to a Windows Share in GNOME?

Published in GNOME File Sharing 4 mins read

Connecting to a Windows share (SMB/CIFS) in GNOME is straightforward, primarily done through the GNOME Files application (Nautilus), allowing you to browse your network or connect directly to a specific server.

1. Connecting via Network Browsing in GNOME Files

This method is ideal for discovering available shares on your local network.

  • Open GNOME Files: Launch the Files application (Nautilus) from your applications menu or by clicking its icon on the dock.
  • Navigate to Network: In the left-hand Places pane, click on Network or Other Locations.
  • Browse Windows Network: You will see an icon labeled Windows Network. Double-click it.
  • Select Workgroup/Domain: A list of workgroups or domains on your network will appear. Double-click the icon of the workgroup or domain containing the computer you wish to access.
  • Access the Computer: Double-click the icon of the specific Windows computer.
  • Authenticate (if prompted): If the share requires authentication, a dialog box will appear asking for a username and password. Enter the credentials for a user account with access to the Windows share.
  • Browse Shares: Once authenticated, you can navigate to the shared directories on that computer.

2. Connecting Directly to a Specific Server

If you know the exact network path to the Windows share (e.g., \\ServerName\ShareName or \\IP_Address\ShareName), you can connect directly. This method is useful when network browsing is slow, unreliable, or if you need to access a specific share outside your immediate network segment (assuming routing allows).

  • Open GNOME Files: Launch the Files application.
  • Access "Connect to Server":
    • In the Places pane, click on Other Locations.
    • At the bottom of the window, locate the Connect to Server input field.
  • Enter the Share Address: Type the address of the Windows share using the smb:// protocol.
    • By Server Name: smb://servername/sharename (e.g., smb://MYWINDOWSPC/Documents)
    • By IP Address: smb://192.168.1.100/sharename (e.g., smb://192.168.1.100/Media)
    • You can also connect to just the server: smb://servername or smb://192.168.1.100 to browse its available shares.
  • Connect: Click the Connect button.
  • Authenticate (if prompted): Provide the necessary username and password for the Windows share.
    • Tip: You might need to use the format DOMAIN\username or COMPUTERNAME\username if the Windows machine is part of a domain or if the username is local to the machine. For instance, MYWINDOWSPC\User1.
  • Access Files: The shared directory will open, and you can access its contents.

3. Making Connections Persistent (Bookmarks)

For shares you access frequently, you can easily bookmark them in GNOME Files.

  1. After successfully connecting to a Windows share using either of the methods above, the share will appear in the Places pane under "Network" or "Other Locations".
  2. Right-click on the connected share and select Add Bookmark.
  3. The share will now appear directly in your Places pane, allowing for quick access with a single click in the future.

4. Common Troubleshooting Tips

If you encounter issues connecting, consider these common solutions:

Issue Possible Solution
Cannot see "Windows Network" Ensure the samba-client package (or samba on some distributions) is installed on your Linux system.
sudo apt install samba-client (Debian/Ubuntu)
sudo dnf install samba (Fedora)
Authentication Failed Double-check the username and password. Remember to use credentials that have access to the specific share on the Windows machine. Try DOMAIN\username or COMPUTERNAME\username for the username field. Ensure the account isn't locked on the Windows machine.
"Could not connect..." Verify the Windows computer is online and its firewall is not blocking SMB traffic (ports 139, 445). Try connecting by IP address instead of hostname to rule out DNS issues. Ensure that "File and Printer Sharing for Microsoft Networks" is enabled in Windows network adapter settings. Make sure Windows has network discovery turned on and shares are configured correctly.
Share Appears Empty/No Access Check the permissions on the Windows share. The user account you are using must have read/write access to the specific folder.
Slow Browsing/Connection Connecting directly via smb://IP_Address/ShareName is often faster than network browsing. Ensure both machines are on the same subnet or that routing is correctly configured.

For more detailed information on configuring Samba or troubleshooting network shares, consult official documentation from resources like the Ubuntu Community Help Wiki on SambaClient or the Arch Linux Wiki on Samba.