Windows can't access SMB shares

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
shockdude
DD-WRT Novice


Joined: 06 Nov 2018
Posts: 6

PostPosted: Tue Jul 20, 2021 4:25    Post subject: Windows can't access SMB shares Reply with quote
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."

I found this previous thread where the OP resolved the issue by having 2 accounts, but this didn't work for me.
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=329194

Any ideas?

Netgear R6700v3
DD-WRT v3.0-r47033
Windows 10 21H1



ddwrt_not_accessible.png
 Description:
 Filesize:  6.4 KB
 Viewed:  1880 Time(s)

ddwrt_not_accessible.png



ddwrt_nas.png
 Description:
 Filesize:  42.33 KB
 Viewed:  1880 Time(s)

ddwrt_nas.png


Sponsor
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Wed Jul 21, 2021 16:16    Post subject: Re: Windows can't access SMB shares Reply with quote
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."

I found this previous thread where the OP resolved the issue by having 2 accounts, but this didn't work for me.
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=329194

Any ideas?

Netgear R6700v3
DD-WRT v3.0-r47033
Windows 10 21H1

Read my reply in the following thread:

DD-WRT Forum :: View topic - New Build - 07/20/2021 - r47074
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=329716&postdays=0&postorder=asc&start=15

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
shockdude
DD-WRT Novice


Joined: 06 Nov 2018
Posts: 6

PostPosted: Sun Jul 25, 2021 22:29    Post subject: Re: Windows can't access SMB shares Reply with quote
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."

I found this previous thread where the OP resolved the issue by having 2 accounts, but this didn't work for me.
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=329194

Any ideas?

Netgear R6700v3
DD-WRT v3.0-r47033
Windows 10 21H1

Read my reply in the following thread:

DD-WRT Forum :: View topic - New Build - 07/20/2021 - r47074
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=329716&postdays=0&postorder=asc&start=15

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?
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Mon Jul 26, 2021 3:48    Post subject: Re: Windows can't access SMB shares Reply with quote
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:

  1. mkdir /jffs/etc
  2. cp /tmp/smb.conf /jffs/etc
  3. edit /jffs/etc/smb.conf,
    change "map to guest" from "never" to "bad user"
  4. service samba3 stop
  5. 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!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1851
Location: Hung Hom, Hong Kong

PostPosted: Mon Jul 26, 2021 7:48    Post subject: Re: Windows can't access SMB shares Reply with quote
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.

DD-WRT Forum :: View topic - New Build - 07/26/2021 - r47090
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=329777

Errata:

... The default for "map to guest" is "map to guest" ...


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw


Last edited by mwchang on Tue Jul 27, 2021 15:33; edited 1 time in total
shockdude
DD-WRT Novice


Joined: 06 Nov 2018
Posts: 6

PostPosted: Tue Jul 27, 2021 6:41    Post subject: Re: Windows can't access SMB shares Reply with quote
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.

DD-WRT Forum :: View topic - New Build - 07/26/2021 - r47090
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=329777


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!
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum