Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 11 can not connect to guest ksmbd share. #619

Open
ivanmara555 opened this issue Nov 28, 2024 · 2 comments
Open

Windows 11 can not connect to guest ksmbd share. #619

ivanmara555 opened this issue Nov 28, 2024 · 2 comments

Comments

@ivanmara555
Copy link

Hello. I have test arch linux with ksmbd v3.5.2 and simple guest share config /etc/ksmbd/ksmbd.conf:

[global]
    map to guest = bad user

[data]
    path = /mnt/sdb/data
    force user = quanta
    read only = no
    guest ok = yes

In windows 10 i enable insecure guest logons policy:

gpedit - Computer Configuration - Administrative templates - Network - Lanman Workstation: Enable insecure guest logons: On

Using explorer i simply connect to open ksmbd share: \\192.168.122.1\data end everything ok (file listing, read/write)

Using xfce thunar i connect normal with: smb://192.168.122.1/data

Using mount.cifs -o guest //192.168.122.1/data /tmp/test everything ok too.

But when i use Windows 11 with enabled insecure guest logons policy connection brocken. Firewall disabed.

What can i do to connect windows 11 to open ksmbd share?

ps:
In Openwrt i have same troubles with windows 11 and open ksmbd share.
Windows 11 connect normal to user/password protected ksmbd share.

@mmakassikis
Copy link

But when i use Windows 11 with enabled insecure guest logons policy connection brocken. Firewall disabed.

what is the error ?
The blogpost below suggests that the following powershell commands should enable guest logon:

Set-SmbClientConfiguration -RequireSecuritySignature $false
Set-SmbClientConfiguration -EnableInsecureGuestLogons $true -Force

https://techcommunity.microsoft.com/blog/filecab/smb-signing-and-guest-authentication/3846679

@ivanmara555
Copy link
Author

Error on screenshot
ksmbd error

But after running your commands:

Set-SmbClientConfiguration -RequireSecuritySignature $false -Force
Set-SmbClientConfiguration -EnableInsecureGuestLogons $true -Force

Windows 11 now connect to ksmbd guest share on linux and openwrt server:
ksmbd error2

Thanx for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants