Sharing files between Windows and Linux computers has become much easier thanks to Samba, an open-source implementation of the SMB (Server Message Block) protocol. Whether you’re accessing a Windows PC from Ubuntu, connecting a Raspberry Pi to your home network, or sharing files with another computer, creating a Samba-compatible share on Windows 11 allows devices on the same network to access shared folders quickly and securely.
Although Windows 11 already supports SMB file sharing, many users aren’t sure how to configure shared folders so they work correctly with Linux systems or other devices using Samba. Incorrect permissions, disabled network discovery, or firewall settings can prevent other devices from accessing your shared folders.
The good news is that Windows 11 already includes everything you need to create a Samba share. In most cases, you simply need to enable the appropriate sharing features, configure permissions, and ensure your network settings are correct.
In this guide, I’ll show you how to create a Samba share on Windows 11, configure permissions, access the shared folder from another computer, and troubleshoot common problems.
If you’re also troubleshooting Windows networking issues, you may find Can’t Remove Bluetooth Device on Windows 11 helpful if you’re experiencing wireless device problems alongside network configuration.
What Is Samba?
Samba is free software that allows computers running different operating systems to share files and printers over a network.
It enables communication between:
- Windows
- Linux
- Ubuntu
- Debian
- Fedora
- Raspberry Pi OS
- macOS (in many situations)
Because Samba uses Microsoft’s SMB protocol, Windows computers can communicate with Linux systems without requiring special hardware.
What Is an SMB Share?
An SMB (Server Message Block) share is simply a folder that has been made available to other devices on your network.
When you create a shared folder in Windows 11, Linux systems running Samba can access it using the SMB protocol.
In many situations, “SMB share” and “Samba share” refer to the same type of network file sharing.
Before You Create a Samba Share
Before configuring your shared folder, verify that:
- Both devices are connected to the same network.
- Network Discovery is enabled.
- File and Printer Sharing is enabled.
- Your Windows account has permission to access the folder.
- Windows Firewall allows file sharing.
Completing these checks first helps prevent connection problems later.
Step 1: Enable Network Discovery
Network Discovery allows other computers to detect your Windows 11 PC.
To enable it:
- Open Settings.
- Select Network & Internet.
- Click Advanced network settings.
- Open Advanced sharing settings.
- Turn on:
- Network Discovery
- File and Printer Sharing
These settings allow your computer to be visible on the local network.
Step 2: Create the Folder You Want to Share
Next, create or choose the folder you want other devices to access.
For example:
C:\SharedFiles
You can also share an existing folder containing documents, photos, videos, or backups.
Choose a location that is easy to manage and contains only files you want others to access.
Step 3: Open Folder Properties
- Right-click the folder.
- Select Properties.
- Open the Sharing tab.
This section contains all the options needed to configure network sharing.
Step 4: Share the Folder
Inside the Sharing tab:
- Click Share.
- Select the user accounts that should have access.
- Click Add.
- Choose the permission level:
- Read
- Read/Write
- Click Share.
Windows will generate the network path for the shared folder.
It typically looks similar to:
\\ComputerName\SharedFiles
This is the address other devices will use to access the folder.
Step 5: Configure Advanced Sharing
For more control:
- Click Advanced Sharing.
- Check Share this folder.
- Optionally change the share name.
- Click Permissions.
Here you can specify exactly who can:
- Read files.
- Modify files.
- Change folder contents.
- Access the shared folder.
Advanced Sharing is recommended when multiple users will access the share.
Step 6: Configure NTFS Folder Permissions
Sharing a folder alone isn’t enough. Windows also checks the folder’s NTFS permissions before allowing access.
To configure them:
- Right-click the shared folder.
- Select Properties.
- Open the Security tab.
- Click Edit.
- Select the user or group that should have access.
- Assign the required permissions.
Typical permission levels include:
- Read
- Write
- Modify
- Full Control
For most home networks, Read or Modify permissions are sufficient.
Remember that the most restrictive permission between NTFS and Sharing permissions will determine what users can actually do.
Step 7: Enable SMB File Sharing
Windows 11 already supports SMB, but if the required feature has been disabled, Samba clients may not be able to connect.
To verify SMB support:
- Open Control Panel.
- Click Programs.
- Select Turn Windows features on or off.
- Expand SMB 1.0/CIFS File Sharing Support if needed.
Most modern Linux distributions use SMB2 or SMB3, which Windows 11 enables by default.
You should only enable SMB 1.0 if you must connect to very old devices that don’t support newer SMB versions, as SMB1 has known security weaknesses.
Step 8: Allow File Sharing Through Windows Firewall
Windows Defender Firewall may block network file sharing.
To allow it:
- Open Control Panel.
- Select Windows Defender Firewall.
- Click Allow an app or feature through Windows Defender Firewall.
- Locate File and Printer Sharing.
- Ensure it’s allowed for your current network (Private is recommended).
After making changes, try accessing the shared folder again.
Step 9: Access the Samba Share from Linux
On most Linux distributions, open your file manager and enter the Windows network path.
For example:
smb://ComputerName/SharedFiles
or
smb://192.168.1.100/SharedFiles
Replace:
- ComputerName with your Windows PC name.
- 192.168.1.100 with your Windows computer’s local IP address if necessary.
You’ll be prompted to enter your Windows username and password if password-protected sharing is enabled.
Step 10: Map the Shared Folder on Another Windows Computer
If another Windows computer needs permanent access to the folder:
- Open File Explorer.
- Click This PC.
- Select Map network drive.
- Choose a drive letter.
- Enter the network path, such as:
\\ComputerName\SharedFiles
- Click Finish.
The shared folder will now appear like a normal drive every time you sign in.
Step 11: Enable Password-Protected Sharing (Optional)
For better security, Windows can require users to sign in before accessing shared folders.
To configure it:
- Open Settings.
- Go to Network & Internet.
- Select Advanced sharing settings.
- Scroll to All Networks.
- Turn Password Protected Sharing on or off depending on your needs.
Leaving it enabled is generally recommended, especially if your network includes multiple users.
Common Problems When Creating a Samba Share
Even after configuring everything correctly, you may encounter connection issues.
Common problems include:
- Network Discovery is disabled.
- File and Printer Sharing is turned off.
- Firewall blocking SMB traffic.
- Incorrect NTFS permissions.
- Incorrect sharing permissions.
- Linux using outdated SMB protocols.
- Wrong username or password.
- Devices connected to different networks.
Checking these areas usually resolves most file-sharing problems.
Tips for Better Samba Performance
To improve file-sharing reliability:
- Use a wired Ethernet connection when transferring large files.
- Keep Windows 11 updated.
- Keep Linux packages updated.
- Use SMB3 whenever possible.
- Avoid enabling SMB1 unless absolutely necessary.
- Use strong passwords for shared accounts.
- Share only folders that actually need network access.
These practices improve both performance and security.
Frequently Asked Questions
Is Samba built into Windows 11?
Windows 11 doesn’t include the Samba software itself, but it fully supports the SMB protocol that Samba uses. This allows Windows computers and Linux systems running Samba to communicate seamlessly.
What’s the difference between Samba and SMB?
SMB is Microsoft’s file-sharing protocol.
Samba is the open-source software that implements the SMB protocol on Linux and Unix-like operating systems.
Do I need to install Samba on Windows 11?
No.
Windows 11 already includes SMB support, so no additional Samba software is required to create shared folders.
Can Linux access Windows 11 shared folders?
Yes.
Any Linux distribution with Samba installed can access Windows 11 shared folders using the SMB protocol.
Why can’t my Linux computer see the Windows share?
The most common causes include:
- Network Discovery is disabled.
- File and Printer Sharing is disabled.
- Windows Firewall is blocking SMB traffic.
- Incorrect folder permissions.
- Incorrect Windows login credentials.
Is SMB1 required?
No.
Modern versions of Windows 11 and Linux use SMB2 or SMB3.
SMB1 should only be enabled for compatibility with legacy devices because it has known security vulnerabilities.
If you’re troubleshooting other Windows networking or system issues, you may also find Active Signal Mode Windows 11 Not Changing? Ways to Fix It helpful for display-related problems, Can’t Remove Bluetooth Device on Windows 11 for wireless connectivity issues, or How to Restart File Explorer on Windows 11 if Windows itself becomes unresponsive during network configuration.
Creating a Samba share on Windows 11 is straightforward once Network Discovery, File and Printer Sharing, folder permissions, and SMB support are configured correctly. Whether you’re sharing files with another Windows computer, a Linux desktop, or a Raspberry Pi, properly configured SMB sharing provides a fast, reliable, and secure way to transfer files across your local network. By following the steps in this guide and verifying both sharing and NTFS permissions, you can create a Samba-compatible share that works smoothly across different operating systems.
