Networking

Share Files Between Windows and Ubuntu: Open a Windows SMB Folder

Access a Windows SMB share from Ubuntu using authorised credentials, test a sample transfer, diagnose access errors and remove temporary sharing afterwards.

Updated: 03/11/2026

Connect Ubuntu to one folder, not an entire Windows drive

After learning Windows-to-Windows sharing, extend the same idea to Ubuntu. Windows will host a practice folder and Ubuntu will open it as an SMB client through its file manager. Begin with reading, permit a sample write only if required, inspect the result on both machines and disconnect afterwards.

Use a trusted local network you may administer and the folder owner’s consent. We do not share the entire drive or expose SMB to the internet. Opening an existing Windows share also does not require installing a Samba server on Ubuntu. Distinguishing the client role from the server role avoids unnecessary configuration.

1. Prepare the computers and a bounded sample

  1. Use Windows 11 and Ubuntu Desktop with Files, or a virtual machine permitted to reach the intended host and network. Save work and keep systems appropriately updated.
  2. On Windows, create a fresh folder such as MiraShare containing a harmless text file. Do not share the entire Desktop or Documents folder for practice.
  3. Identify an authorised Windows account and password with the intended read permission. Avoid Guest or granting Everyone full control for convenience.
  4. Use the appropriate sharing configuration only on the trusted network. Do not disable the firewall or expose sharing on public networks.

Ubuntu running under VirtualBox NAT does not automatically require switching to Bridged networking. Here Ubuntu initiates a connection to Windows. Inspect actual reachability and restrictions before changing adapter mode. A guest Wi-Fi network may intentionally prevent devices from contacting each other.

Windows hosts the share; Ubuntu connects as an authorised client
Original Mira4Tech teaching diagram; explains the idea, not a screenshot or a diagnostic result from your device.

2. Configure the Windows share with deliberate permissions

Follow the earlier sharing lesson to grant the appropriate user access through the available sharing controls, starting with reading. Also inspect the Security tab for NTFS permissions. Effective access must be allowed by both share and filesystem permissions, so a write refusal is not automatically an Ubuntu problem.

Retain password protection and modern SMB security policies. Old compatibility recipes may request Guest, SMB1 or disabled signing; those are not this lesson’s steps. Update an incompatible client or investigate supported configuration rather than weakening protection. Reading a sample file does not require making the network account a Windows administrator.

LayerCheck
ShareAuthorised user and intended access
Security / NTFSAccount access to the actual folder and file
Network and firewallSharing permitted only in the required trusted scope
ClientAn updated version and valid credentials

3. Identify the computer and the share name

A share name can differ from its folder name on disk. Record the name Windows exposes, such as MiraShare. Use ipconfig in Command Prompt to read the connected adapter’s IPv4 address, not the router gateway or a disconnected adapter. Keep the computer name too if you later want to test name-based access.

ipconfig

The teaching example assumes Windows is at 192.168.1.20 and the share is MiraShare. Replace the address with your actual value rather than assuming the example identifies your computer. Windows can represent a share using backslashes; Files uses an smb:// URL with forward slashes.

The address identifies Windows; the following name identifies its share
Original Mira4Tech teaching diagram; explains the idea, not a screenshot or a diagnostic result from your device.

4. Open the share in Ubuntu Files

  1. Open Files and look for Network, Other Locations or Connect to Server as appropriate to the release. Ctrl+L can open the location field.
  2. Enter smb:// followed by the Windows address and share name. Do not include a password in the URL.
  3. Connect and choose the registered-user equivalent when authentication is requested. Use the account authorised on Windows.
  4. If Domain or Workgroup is requested, supply the value appropriate to the account and environment rather than inventing an organisational domain. Avoid saving credentials on a shared or untrusted practice machine.
smb://192.168.1.20/MiraShare

GNOME sidebar names vary by release, so the lesson describes opening a network location rather than promising one fixed button position. If the protocol is unsupported, consult your distribution’s documented client components and repositories. Do not install an entire file server or add an unknown repository merely because an interface choice is absent.

5. Use the account password rather than the local sign-in PIN

A PIN used to sign into Windows locally is not the account password requested by network authentication. Use an account permitted by the share and its correct form for your environment, whether local or administratively managed. Do not place credentials into a visible command, URL, screenshot or troubleshooting comment.

If incorrect details were saved, disconnect and review the saved credential through the desktop’s supported account-storage controls before trying again. Repeated attempts may lock an account under its policy. Read the actual error rather than continuing indefinitely, and do not treat success under a different user as proof that the intended permissions are correct.

6. Verify reading, then writing only when authorised

  1. Open the sample text through the share and read its known sentence. This demonstrates reading in this context, not permission to edit every file.
  2. Copy it into a new local Ubuntu directory and open that local copy. Choose a fresh name rather than overwriting existing material.
  3. If uploading to Windows is required, have the owner grant appropriate write access to this folder, then create a new uniquely named practice file.
  4. Open the received file on Windows and verify its name and content instead of trusting only the transfer-progress indicator.

A local copy does not automatically keep a share available offline or establish two-way synchronisation. Deleting something within the network location may affect the remote original, so do not rely on a local trash folder to recover it. Practise with small disposable sources before handling important data.

Reading, copying locally and writing back require different rights and checks
Original Mira4Tech teaching diagram; explains the idea, not a screenshot or a diagnostic result from your device.

7. Diagnose the stage that actually failed

SymptomInspect first
Computer unreachableAddress, link, isolation and sharing rules
Address works but name does notName resolution rather than file permissions
Authentication refusedAccount, password and sign-in policy
Folder opens but writing failsShare and NTFS permissions for that action
Only certain files failSpecific names, permissions and source files

Ping can contribute evidence but does not establish that SMB is available. A computer can also decline ICMP replies while sharing still works. Use the network-command lesson to distinguish connectivity from service access. Do not disable the entire firewall as a test; inspect relevant rules and scope with the administrator.

For a modern compatibility message, compare client and server releases with current official guidance. Guest authentication, SMB1 or disabled signing are not default fixes. The objective is a working configuration appropriate to the environment rather than opening a folder at any security cost.

8. Disconnect and remove temporary access

Close open network files and use Disconnect or Eject beside the network resource in Files where available. If sharing was temporary, return to Windows and stop sharing the practice folder or remove only the permission added for the exercise. Do not delete an existing user account or alter unrelated folder permissions.

Verify important files remain unchanged, retaining the share location and intended access level without its password. Completion means a known connection, a checked file and an appropriate sharing scope, not merely an open window. For continued use, document the configuration and maintain updates instead of relying on temporary security exceptions.

Questions before trying the steps

Do I need Samba Server on Ubuntu?

Not simply to access a Windows share through an SMB-capable Files client. Hosting a Linux share in the reverse direction is a different task.

Should I forward an SMB port for access outside home?

Not in this local-network exercise. External access needs an appropriately protected design instead of exposing SMB directly to the internet.

Choose a useful next step

Start with Windows share configuration and permissions

Diagnose connectivity before changing permissions

Understand local copies and original files

Official references and preparation

Prepared by the Mira4Tech Team using official documentation. Examples and original diagrams are educational, not a claim of running every command on every device or release. Menu wording can vary. Practise on sample files in an environment you may administer, and read each result before continuing.