Here are some good troubleshooting steps, shamelessly copied from ServerFault:

  1. Maybe your Windows host is prepending your username with the wrong domain name. From the Windows machine, try to login using localhost\simon as the username
  2. Issue sudo pdbedit -L (must run as root) and check if user simon is listed. If so, set a trivial password (you can change it later) using smbpasswd simon
  3. If user simon is not listed, try to recreate it issuing smbpasswd -a simon
  4. If it does not work, delete the passwd file (it is named passwd.tdb; for reference, it is found under /var/lib/samba/private/). Then, recreate your user issuing smbpasswd -a simon
  5. If it still not working, try to use the root account issuing smbpasswd -a root and check if you can login using the root user. Note: this is only a try. After having done with it, you must delete root's entry issuing smbpasswd -x root
  6. Your last resort is to increase the verbosity of logging and see if you can find clues there. For authentication attempts, edit or add the following line on your smb.conf: log level = 2 winbind:5, check the logs with something like tail -f /var/log/samba/log* and try to login.

Hope some of it helps.

Answer from Artur Meinild on askubuntu.com
🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › networking
Windows 10/11 Samba file sharing - access denied [sort of solved but observations appreciated] - Linux Mint Forums
September 9, 2025 - Hi, The tutorial link is at https://www.youtube.com/watch?v=qo1CIuyoCeA I've solved the "how to access from Win 11" query from some further web searching - I had to allow configure the Win 11 machine to allow insecure connections, and I can now access other machines on the network. I failed to mention addition of the winaccess user to the samba password database - I had done that already, thanks "If it works for Win11 it should work for Win10..."
Top answer
1 of 2
4

Here are some good troubleshooting steps, shamelessly copied from ServerFault:

  1. Maybe your Windows host is prepending your username with the wrong domain name. From the Windows machine, try to login using localhost\simon as the username
  2. Issue sudo pdbedit -L (must run as root) and check if user simon is listed. If so, set a trivial password (you can change it later) using smbpasswd simon
  3. If user simon is not listed, try to recreate it issuing smbpasswd -a simon
  4. If it does not work, delete the passwd file (it is named passwd.tdb; for reference, it is found under /var/lib/samba/private/). Then, recreate your user issuing smbpasswd -a simon
  5. If it still not working, try to use the root account issuing smbpasswd -a root and check if you can login using the root user. Note: this is only a try. After having done with it, you must delete root's entry issuing smbpasswd -x root
  6. Your last resort is to increase the verbosity of logging and see if you can find clues there. For authentication attempts, edit or add the following line on your smb.conf: log level = 2 winbind:5, check the logs with something like tail -f /var/log/samba/log* and try to login.

Hope some of it helps.

2 of 2
3

I had the same issue and finale found a solution as mentioned here.

AppArmor and Samba may interfere each other after updates or not being properly configured. The suggested solution is to activate complaint-mode for AppArmor's smbd:

sudo aa-complain /etc/apparmor.d/usr.sbin.smbd

However you could also add Site-specific additions in /etc/apparmor.d/local/usr.sbin.smbd to get access.

Discussions

Windows 11 SMB Client cannot connect to SMB share - error 53 on `net view`
Machine in question: Windows 11 21H2 22000.832 OSes on other devices that can successfully connect to the share: MacOS Ventura built-in SMB; iOS 16.5 built-in SMB; ES File Explorer on iOS, Windows 10; etc. Share Host: TrueNAS-13.0 with domain… More on learn.microsoft.com
🌐 learn.microsoft.com
16
5
rhel - Can not access Samba server from Windows 11 after server reinstall - Stack Overflow
I recently reinstalled my Alma Linux server, before the reinstall I had a samba share working as intended between my two machines. Unfortunately after the reinstall I can't seem to get them to want... More on stackoverflow.com
🌐 stackoverflow.com
Samba Share inaccessible from Windows 11
I am trying to create a windows 11 VM in gnome boxes that can access drives. For some reason passing through any drive to the VM doesn’t work, the windows 11 recognizes a drive was plugged in but gives an error saying it is unreadable. This is even though the drive is NTFS or exFat formatted. More on forums.rockylinux.org
🌐 forums.rockylinux.org
19
0
August 23, 2025
I'm unable to access Samba shares from a Windows 11 Pro computer.
Making changes to your system BIOS settings or disk setup can cause you to lose data. Always test your data backups before making changes to your PC. For more information please see our FAQ thread: https://www.reddit.com/r/techsupport/comments/q2rns5/windows_11_faq_read_this_first/ I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/techsupport
7
2
October 27, 2025
🌐
Super User
superuser.com › questions › 1857462 › linux-samba-denied-connection-from-windows-11-client
Linux SAMBA Denied Connection from Windows 11 client - Super User
iptables -A INPUT -m state --state NEW -p udp --dport 137 -j ACCEPT iptables -A INPUT -m state --state NEW -p udp --dport 138 -j ACCEPT iptables -A INPUT -m state --state NEW -p tcp --dport 139 -j ACCEPT iptables -A INPUT -m state --state NEW -p tcp --dport 445 -j ACCEPT docker run -d --network host --privileged -v "/data/data:/data" --name samba crazymax/samba
🌐
Microsoft Learn
learn.microsoft.com › en-us › troubleshoot › windows-client › networking › access-denied-access-smb-file-share
Access Denied when you access Server Message Block (SMB) file share - Windows Client | Microsoft Learn
February 12, 2026 - When you try to access a specific folder that's located on a Network Appliance (NetApp) Filer or a Windows Server that supports SMB2 from a Windows-based system through the SMB Version 2 protocol, the access is denied.
🌐
Stack Overflow
stackoverflow.com › questions › 75861592 › can-not-access-samba-server-from-windows-11-after-server-reinstall
rhel - Can not access Samba server from Windows 11 after server reinstall - Stack Overflow
I setup this share from RHEL cockpit, but I'm comfortable with cli if its required. Note if I check windows ACLs below, it removes valid users. I'm sure I didn't use that feature last time. ... Load smb config files from /etc/samba/smb.conf Loaded services file OK.
🌐
Rocky Linux Forum
forums.rockylinux.org › rocky linux help & support
Samba Share inaccessible from Windows 11 - Rocky Linux Help & Support - Rocky Linux Forum
August 23, 2025 - I am trying to create a windows 11 VM in gnome boxes that can access drives. For some reason passing through any drive to the VM doesn’t work, the windows 11 recognizes a drive was plugged in but gives an error saying it is unreadable. This is even though the drive is NTFS or exFat formatted.
Find elsewhere
Top answer
1 of 7
14

To access the samba share, please pay attention to:

  1. You had to create a system user with the same username. In this case, please issue the following command: useradd -s /sbin/nologin benjamin
  2. If you are using a SELINUX-enabled system (eg: CentOS), try to temporarily disable it issuing setenforce 0

EDIT: as the problem persists, try the following:

  1. maybe your Windows host is prepending your username with the wrong domain name. From the Windows machine, try to login using localhost\benjamin as the username
  2. issue pdbedit -L and check if user benjamin is listed. If so, set a trivial password (you can change it later) using smbpasswd benjamin
  3. if user benjamin is not listed, try to recreate it issuing smbpasswd -a benjamin
  4. if it does not work, delete the passwd file (it is named passwd.tdb; for reference, in a CentOS 6.x system it is found under /var/lib/samba/private/). Then, recreate your user issuing smbpasswd -a benjamin
  5. if it still not working, try to use the root account issuing smbpasswd -a root and check if you can login using the root user. Note: this is only a try. After having done with it, you must delete root's entry issuing smbpasswd -x root
  6. Your last resort is to increase the verbosity of logging and see if you can find clues there. For authentication attempts, edit or add the following line on your smb.conf log level = 2 winbind:5, check the logs with something like tail -f /var/log/samba/log* and try to login.
2 of 7
12

It is possible you need to add the user in question to your smb service in linux

sudo smbpasswd -a myuser
🌐
Reddit
reddit.com › r/techsupport › i'm unable to access samba shares from a windows 11 pro computer.
r/techsupport on Reddit: I'm unable to access Samba shares from a Windows 11 Pro computer.
October 27, 2025 -

On Manjaro Linux, I set up some folder shares to try to make a media server. I can access those shares from another computer running Ubuntu just fine. A PC with a Windows Pro license isn't seeing either Linux computer. Is there some service that needs to be running on the Windows computers for this to work? I asked on the Manjaro side and didn't get anywhere.

Edit: I eventually came across this fix in this thread. I applied it to the Windows Pro boxes.

Machina10Reputation points

Oct 2, 2025, 6:49 PM

I lost access to the shares on my WD NAS after the KB5065426 update. I followed the usual advice to uninstall the update, but I failed to block its reinstallation, and now Win 11 will not allow me to uninstall it. So, here is what I did to regain access to my NAS shares, while leaving the KB5065426 update installed. (Leaving it installed is presumably better for security anyway.)

Step 1: Insure that the NAS utilizes SMB2 or SMB3, and not SMB1. Do this by checking the settings on the NAS or its documentation.

Step 2: Run powershell as an administrator and enter the command

Copy

Get -SMBClientConfiguration

Look at the results to ensure that "EnableInsecureGuestLogons" is set to "$true" and that "RequireSecuritySignature" is set to "$false". If needed, change these values, by entering the command

Copy

 Set -SMBClientConfiguration -EnableInsecureGuestLogons $true 

and the command

Copy

Set -SMBClientConfiguration -RequireSecuritySignature $false

Restart the machine if any settings were changed by powershell.

Step 3: If you don't know the exact name by which your NAS is known to your machine, find it by looking under "Network" in Windows Explorer. Then, in Explorer right click on "This PC" to choose "Add a network location". Then click on "Choose a custom network location" to bring up a dialog where you can enter the exact name and location of the share you want to access, in the form

\exact name of your NAS\exact name of the share

Then, click "browse". That should bring up a system response in which it acknowledges that it has found the share. Assign a drive letter to it. You should now have stable access to the share, using the assigned drive letter.

At least this worked for me on my personal machine. On my corporate laptop it did not work, since my organization does not allow me to choose a custom network location outside of the corporate network, and my NAS is not in the corporate network. So, for access to my NAS on my corporate machine, I have to set up cloud access to the NAS and get access to the share by browsing from the cloud.

Yes, this is all annoying and time-consuming. I'm grateful to others on this thread for their help. Probably my strategy will not work for everyone, since there are lots of variables in play here. MS should not have released an update that would cause so much trouble with networking.

🌐
Reddit
reddit.com › r/unraid › can’t access private smb on windows 11 machine
r/unRAID on Reddit: Can’t access private SMB on windows 11 machine
April 4, 2024 -

Hi guys, I have been trying to troubleshoot for hours, searching Google, YouTube, etc. but I can’t get it to work. I have my share in unraid set to private and my user has read/write permissions, then I go to file explorer and see my unraid server called “Hemmaserver“ but when I click on it this error message pops up:

https://imgur.com/a/fVdZsUy

“\HEMMASERVER is not available. Maybe you don’t have permissions to use this resource. Ask the server’s administrator for help. Multiple simultaneous server connections or resources that are shared by the same user that uses more than one username are not allowed. Disconnect all previous connections to the server or the shared resources and try again.“ -Directly translated from Swedish to English as best I could.

I have gotten public shares to work, but private shares are still not accessible

I am using the tailscale plugin in case that is important and I am using the latest windows 11 version and unraid version 6.12.9

🌐
Reddit
reddit.com › r/homenetworking › windows 11 cannot access linux samba guest share – keeps asking for credentials
r/HomeNetworking on Reddit: Windows 11 cannot access Linux Samba guest share – keeps asking for credentials
August 20, 2025 -

Hello,

I am trying to connect from Windows 11 to a shared folder on a Linux server (via SMB/Samba). The Linux share is configured for guest access (no username/password required).

When I try to access it with:

\...*****

Windows always prompts me for credentials.

If I use Command Prompt with:

net use T: \...***** "" /user:guest

I get the error:

System error 3227320323 has occurred.

On Windows 10, the same share works correctly with guest access, but on Windows 11 (version 10.0.26100.4946) it fails.


What I have already tried:

Added registry key:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters] "AllowInsecureGuestAuth"=dword:00000001

Modified LSA keys:

restrictanonymous = 0 restrictanonymoussam = 0

Deleted all saved SMB sessions with net use * /delete /y.

Rebooted after every change.

Tried connecting with guest as username and blank password.

Tried . \guest and ANONYMOUS as usernames.

Enabled SMB 1.0/CIFS File Sharing Support under “Windows Features” (including SMB1 client).

Verified that the Linux side works fine (tested with another Windows 10 machine, it connects immediately without credentials).


Question:

Has Windows 11 completely disabled guest/anonymous SMB access in the latest builds? If not, what additional steps can I take to make Windows 11 connect to a Samba guest share (no password)?

Thank you for any help.

Top answer
1 of 2
1

By doing some trial and error found the following:

In CMD:

E:\>NET USE Z: \\x.x.x.x\sharename youruserpassword /PERSISTENT:NO /USER:yourusername
Error de sistema 67.

Upgraded Samba to version 4.19.4, I had a look on man smb.conf and made the following changes (since it was configured for SMB2):

[global]

workgroup = BLUECROSS
client min protocol = SMB3
client max protocol = SMB3
client smb encrypt = required
client signing = required
server min protocol = SMB3
server max protocol = SMB3
ntlm auth = ntlmv2-only

It works now:

E:\>NET USE Z: \\x.x.x.x\sharename youruserpassword /PERSISTENT:NO /USER:yourusername
Se ha completado el comando correctamente.


E:\>DIR Z:
 El volumen de la unidad Z es sharename
 El número de serie del volumen es: 3C72-71F2

 Directorio de Z:\

12/01/2024  10:28 p. m.    <DIR>          .
12/01/2024  10:28 p. m.    <DIR>          ..
14/12/2023  09:49 p. m.    <DIR>          Documents
14/12/2023  10:34 p. m.    <DIR>          Downloads
10/01/2024  12:09 a. m.    <DIR>          Music
07/03/2022  01:06 p. m.    <DIR>          Pictures
12/05/2023  07:43 p. m.    <DIR>          Videos
               0 archivos              0 bytes
               7 dirs  537,922,781,184 bytes libres

E:\>NET USE Z: /DELETE
Z: se ha eliminado.

Oher Settings on your Win11 that might help, I had these settings beforehand:

Configuration, Network & internet, Properties: Private (not public) Configuration, Network & internet, Avanced network settings, Advanced Shared settings: All Networks: 128 bit encryption


2 of 2
-2

See 3.b from this article, https://seamusdemora.github.io/PiFormulae/FileShare.html

In short, you need to create a password for Samba, for example: $ sudo smbpasswd -a pi New SMB password: Retype new SMB password:

Top answer
1 of 2
1

For Fedora 25, I am not familiar with fedora version numbers but I am with RHEL/Centos 7.x If you have selinux enabled by default, you might try as root setenforce 0 to temporarily put selinux into permissive mode until next reboot, see if this allows samba access to work. If so then it's a selinux problem, and in RHEL/Centos there is etc/samba/smb.conf.example which explains the samba related selinux commands needed to allow samba shares to work with selinux set to enforcing.

For your version of fedora, I would work off the /etc/samba/smb.conf.example.

for reference here is my working smb.conf from an older version of samba showing what i believe is the minimum required to get it to work. If you go too restrictive with settings then you can prevent a successful connection so sometimes it's best to not specify which generally means allow for all.

In your [myshare] take out allow hosts and valid users. Once samba working then consider adding restrictive measures like these as necessary.

[global]
#       min protocol = SMB1 needed for winxp
        min protocol = SMB1
#       max protocol SMB2 needed to work with win10, unspecified for this older version of samba is smb1.
        max protocol = SMB2 
        security = user
        passdb backend = tdbsam
#       map to guest = never prevents popup option, bad user allows popup in windows
        map to guest = Bad User

[data]
    path = /data
    read only = No
#   guest ok = no
#   create mask = 660
#   directory mask = 770

with guest ok = no, and map to guest bad user, will allow popup in windows giving anyone a chance to enter correct linux username and pw. map to guest never prevents popup, meaning the username of the windows user has to be the same as a valid local user in linux, per security=user. You likely do not need min/max protocol specified, I do in samba version 3.6. I don't know what verion of samba u have in fedora 25, if it's samba 3.x then try specifying the min/max protocol.

don't forget to do smbpasswd -a <username on your linux system.

2 of 2
0

I have a system that allows WinXP and Win7 to access samba as guests. A few entries that may help are:

[global]
security = user
null passwords = yes
map to guest = Bad Password
guest ok = Yes

I am using wide open shares on a trusted lan.

🌐
Unraid
forums.unraid.net › home › unraid os support › file sharing protocol support › can’t access my smb via windows 11
Can’t access my SMB via Windows 11 - File Sharing Protocol Support - Unraid
April 3, 2024 - Hi guys, I have been trying to troubleshoot for hours, searching Google, YouTube, etc. but I can’t get it to work. I have my share in unraid set to private and my user has read/write permissions, then I go to file explorer and see my unraid server called “Hemmaserver“ but when I click on it this ...
🌐
Reddit
reddit.com › r/truenas › latest windows 11 update may break smb shares.
r/truenas on Reddit: Latest Windows 11 Update may break SMB shares.
September 15, 2024 -

(Note: I am aware that there are security concerns with this.)

This worked for me to restore access

On your Window Client:

Disable the SMB client signing requirement:

gpedit.msc

Computer Configuration > Windows Settings > Security Settings> Local Policies > Security Options.

Microsoft network client: Digitally sign communications (always).

Select Disabled

I found the info here:

https://techcommunity.microsoft.com/t5/storage-at-microsoft/accessing-a-third-party-nas-with-smb-in-windows-11-24h2-may-fail/ba-p/4154300

🌐
Linux Mint Forums
forums.linuxmint.com › board index › main edition support › networking
SAMBA permission denied from Windows - Linux Mint Forums
Have you created the user 'bpenven' as a Unix and Samba user ? Lets take your 'Jellyfin' share, line by line, ignoring the 'path': force user = bpenven This means that every authenticated user that connects becomes 'bpenven' guest ok = Yes This means that unknown, unauthenticated users can access the share as the user 'nobody' read only = No This means the share is readable and writeable valid users = bpenven This means that the only user that can connect is 'bpenven', so this stops guest access in its tracks, 'nobody' will not be allowed.
🌐
DietPi
dietpi.com › troubleshooting
Can't write to samba share on Windows 11 despite changing the samba config - Troubleshooting - DietPi Community Forum
June 8, 2023 - Creating a bug report/issue Required Information DietPi version | G_DIETPI_VERSION_CORE=8 G_DIETPI_VERSION_SUB=18 G_DIETPI_VERSION_RC=2 G_GITBRANCH=‘master’ G_GITOWNER=‘MichaIng’ Distro version | bullseye 0 Kernel v…
🌐
OpenWrt Forum
forum.openwrt.org › installing and using openwrt
Samba Share Access Denied on Windows 10 and Android - Installing and Using OpenWrt - OpenWrt Forum
March 15, 2023 - I've been bashing my head against this for HOURS searching every thread on every site I can find, but so far nothing that has worked for other people has worked for me. I am trying to setup up a network share on a USB drive with Samba4 on my router. I followed the instructions on this page https://openwrt.org/docs/guide-user/services/nas/cifs.server, step by step, very carefully, twice.