I've followed the wiki for both Samba4 and Ksmbd shares, as well as installing packages for kmod-ntfs3, wsdd2, luci-app-hd-idle, kmod-usb3 kmod-usb-storage-uas usbutils block-mount mount-utils, kmod-fs-ext4 kmod-fs-exfat kmod-fs-ntfs3 and others.
It just refuses to connect using any Windows 11 PC with either samba4 or ksmbd, but my android phone and ipad can connect locally through WiFi as well as through OpenVPN to my openwrt router all connecting to the same 192.168.1.1 address and see all files.
I'm using "OpenWrt 24.10.1 r28597-0425664679 / LuCI openwrt-24.10 branch 25.137.37373~691440a" x86/64.
I've tried //192.168.1.1/whateversharename, tried only //192.168.1.1, tried //openwrt, tried clicking on OPENWRT inside of explorer in Network, all saying Windows cannot access them.
What information do I need to post to figure out this issue?
My PCs are all set as Private network profiles but I don't understand why that would affect anything. My shared drives are all NTFS formatted though would that cause problems?
No. Did you check Windows SMB client features status? SMB Direct should be enabled. Disable Windows firewall (or 3rd party installed AV) completely while testing
I'm not seeing SMB Direct, had to look up how to enable it. My firewall is completely disabled(tested this before you posted).
This is Windows 11 Home 24H2
They all correct. Did you check advanced sharing settings?
On openwrt console paste netstat -tlnp | grep smbd
on my end it shows:
tcp 0 0 192.168.1.1:445 0.0.0.0:* LISTEN 2516/smbd
tcp 0 0 192.168.1.1:139 0.0.0.0:* LISTEN 2516/smbd
Make sure these services are enabled and running: Function Discovery Resource Publication, Function Discovery Provider Host, SSDP Discovery, UPnP Device Host
wrong "//"? should be "\\192.168.1.1\wtv" right?
Go to /etc/config/fstab
and confirm:
option options 'rw,sync'
option enabled '1'
1 Like
Function Discovery Resource Publication, Function Discovery Provider Host, SSDP Discovery, UPnP Device Host, some are manual, and automatic....but I started them anyways.
I should mention though, that I have always been able to connect to shares on other Windows PCs, and that still works from this testing computer.
the // or \\ thing, I just mistyped here(getting late and mind not working well)
where do I add those options?
edit: I used System ---> Mount points in the webgui
This is the error, just in case that helps.
In last two under each put those options. Then run following:
/etc/init.d/fstab restart
block umount
block mount
Then restart samba4 and ksmbd services.
Done the fstab edits and restart block umount mount etc........still the same Windows cannot access error.
You mentioned you can't even access "//192.168.1.1/" to show shared files. Meaning somewhere there's permissions, authentication or protocol mismatch.
There's a registry trick to enable guest access
reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters /v AllowInsecureGuestAuth /t REG_DWORD /d 1 /f
reg add HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v LmCompatibilityLevel /t REG_DWORD /d 1 /f
Then reboot Windows.
Source: https://www.reddit.com/r/unRAID/comments/tgkdx1/windows_11_and_guest_samba_logins/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
But Idk if it's needed. You can give it a try.
I'm using RPi4 with f2fs filesystem. I just installed samba4 and edited following settings:
//192.168.1.1 opens my web browser to the openwrt web gui of course but \\192.168.1.1 does this same error
I should mention that I created a user following the tutorial, because I didn't want no password access, but I did temporarily allow guest and removed user from the Samba settings as well as with ksmbd. I guess I can try that guest regedit thing.
Sure but normally you don't need to modify registry just to have access to samba. It's just for testing purpose.
Best thing would be creating a user.
1. Go to /etc/passwd
2. Add at the bottom:
yourusername:*:1000:65534:yourusername:/var:/bin/false
3. In putty:
smbpasswd -a yourusername
4. Restart Samba4
I added a new user with your "funk2:*:1000:65534:funk2:/var:/bin/false", and unticked allow guests, and guest only, added "funk2" to allowed users, and still not working with Windows......but I just discovered something weird.
My Android phone can connect no matter what settings, and what users I have set in the Samba webgui. It even connects without a username and password but I have these settings and restarted samba4.
edit: oops, hang on, i didn't change yourusername in the second part of that passwd line
Okay fix that and try to connect. On error show output of logread | grep -E "smbd|ksmbd|wsdd2"
After fixing the username in passwd, it connects with my android phone but doesnt list files this time, so that fixes that small issue that I created just then, and when you add user and password it can access files.
Now in regards to my original ongoing issue: