Access to Linux Samba guest share from Windows 11 with guest account
To access to Linux a Samba guest share from Windows 11, ]the guest access has to be enabled by executing the following commands in PowerShell.
Set-SmbClientConfiguration -RequireSecuritySignature $false
Set-SmbClientConfiguration -EnableInsecureGuestLogons $true
The Linux Samba guest share is a share configured with guest only = Yes and guest ok = Yes. In the example below the access to the guest share is restricted by hosts allow = xxx.xxx.xxx.xxx and hosts deny = 0.0.0.0/0.
[public]
path = /shares/public
force group = public
read only = No
create mask = 0660
directory mask = 0770
**guest only = Yes
guest ok = Yes**
hosts allow = xxx.xxx.xxx.xxx
hosts deny = 0.0.0.0/0
→