Posted: Tue Jul 20, 2021 4:25 Post subject: Windows can't access SMB shares
I recently set up DD-WRT on another router, but I can't get Windows to access my SMB shares. Even after resetting DD-WRT to defaults and only enabling SMB, Windows just yells at me and says "\\DD-WRT is not accessible."
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Wed Jul 21, 2021 16:16 Post subject: Re: Windows can't access SMB shares
shockdude wrote:
I recently set up DD-WRT on another router, but I can't get Windows to access my SMB shares. Even after resetting DD-WRT to defaults and only enabling SMB, Windows just yells at me and says "\\DD-WRT is not accessible."
Posted: Sun Jul 25, 2021 22:29 Post subject: Re: Windows can't access SMB shares
mwchang wrote:
shockdude wrote:
I recently set up DD-WRT on another router, but I can't get Windows to access my SMB shares. Even after resetting DD-WRT to defaults and only enabling SMB, Windows just yells at me and says "\\DD-WRT is not accessible."
Thanks for the suggestion. Unfortunately, it didn't work for me, I edited /tmp/smb.conf and changed "map to guest" to "bad user", but I still can't access any shares. Did I miss a step?
net use * /delete is already empty, there are no saved Windows credentials in Credential Manager. Is restarting ksmbd needed, and if so how can I do that without overwriting smb.conf?
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Mon Jul 26, 2021 3:48 Post subject: Re: Windows can't access SMB shares
shockdude wrote:
Thanks for the suggestion. Unfortunately, it didn't work for me, I edited /tmp/smb.conf and changed "map to guest" to "bad user", but I still can't access any shares. Did I miss a step?
Is your router JFFS2 enabled? Or is /jffs mounted via USB? The job is easier with /jffs mounted:
mkdir /jffs/etc
cp /tmp/smb.conf /jffs/etc
edit /jffs/etc/smb.conf,
change "map to guest" from "never" to "bad user"
service samba3 stop
service samba3 start
If you now use "ps" to list processes, you should see ksmbd.mountd using /jffs/etc/smb.conf! It's the same trick with recursive DNS, that is /jffs/etc/unbound.conf.
The next DD-WRT build (after 47086) would correct "map to guest" according to insider tips.
BTW, You should not have edited /tmp/smb.conf directly because it's read-only?
_________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Mon Jul 26, 2021 7:48 Post subject: Re: Windows can't access SMB shares
shockdude wrote:
Thanks for the suggestion. Unfortunately, it didn't work for me, I edited /tmp/smb.conf and changed "map to guest" to "bad user", but I still can't access any shares. Did I miss a step?
net use * /delete is already empty, there are no saved Windows credentials in Credential Manager. Is restarting ksmbd needed, and if so how can I do that without overwriting smb.conf?
Build 47090 has just been released. The default for "map to guest" is "never". You need to disable then enable Samba for /tmp/smb.conf to be overwritten by new settings.
Posted: Tue Jul 27, 2021 6:41 Post subject: Re: Windows can't access SMB shares
mwchang wrote:
shockdude wrote:
Thanks for the suggestion. Unfortunately, it didn't work for me, I edited /tmp/smb.conf and changed "map to guest" to "bad user", but I still can't access any shares. Did I miss a step?
net use * /delete is already empty, there are no saved Windows credentials in Credential Manager. Is restarting ksmbd needed, and if so how can I do that without overwriting smb.conf?
Build 47090 has just been released. The default for "map to guest" is "never". You need to disable then enable Samba for /tmp/smb.conf to be overwritten by new settings.
Yeah I hadn't configured jffs, I probably should.
But thanks for the heads up about build 47090, I've confirmed "bad user" sticks in /tmp/smb.conf, and samba sharing seems to now work as I expect it to. Will keep an eye on it throughout the week, but thanks for the help!