Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem: Suddenly can't access SMB Shares on any PC

Featured Replies

Solved by Anon

57 minutes ago, Anon said:

I did the Upgrade via the internal updater. The update was succcessfull but the error is sadly still there :/

 

Idea: Is it possible to just delete all contents of the config?

If so I would back up the current config. Then delete everything. Reboot. Set up one share to export and create one test user.

 

That way I could test that smb at least works if I start completely fresh.

Then I either go from there and manually configure everything again.

Or I can copy over a few of the backed up files (depending on which are safe to copy back and which could be related to the smb error)

 

If it were me, I'd boot in safe mode and verify SMB was working, then add back plugins and dockers until it stops.

  • Author
  • Solution

Hello everyone.

I got it working again.

 

Step taken:

- Took the USB Stick and saved the config colder

- Flashed the USB Stick with the USB-Creator

- Copied the config folder back onto it -> Same Error

- Removed the following files: "passwd", "secrets.tdb", "shadow", "smbpasswd"

- Restarted -> SMB Working

 

Then I just had to recreate the users. But the awesome thing was I only need to set the name and password. The exact permissions on the shares were retained in the share config. So it only took ~2 min to get all users back and now its happily chugging along.

 

Thanks so so much for all your help

  • Community Expert
28 minutes ago, Anon said:

Removed the following files: "passwd", "secrets.tdb", "shadow", "smbpasswd"

 

Good to know.   So all of the SMB settings are in those four files.  And deleting them will allow one to completely reset the SMB configuration.  (Now, if I can only remember that fact the next time someone posts up with a similiar problem...)  Also good to know that the Share permissions are not a part of the SMB configuration.

  • Author

Yeah the names are stored here:

grafik.thumb.png.c81fc64b7a63ca231e509bae2d4f7c20.png

After deleting the other files it still had the references to those names saved in those files. So once I recreated the user it read that information and set the perms accordingly.

  • 5 weeks later...

I found the easy solution to this problem after pulling all my hair out.

If you had SMB share working previously with a  mapped the network drive.

The solution for me was to remove the old mapped drive and remap it again.

Doing this magically made smd work again.

It stopped telling me my login/password were wrong (even though they were never wrong)

I was back in without changing anything in unraid.

Hope this helps 

  • 1 month later...

My hair is gone as well.  I didn't pull it out, but let's set that aside.

 

My SMB share stopped mounting, so I deleted the SMB, and remapping on my NAS did not work.  It did not load my "server" (Windows PC) and would not load remote shares.

 

I ended up having to re-share the Windows share on my PC (properties -> Sharing tab -> share button).  Didn't make any changes in Windows other than hit the button and have the share files re-walked on the PC.  I added the share on the NAS again, was able to load the "server" and load the remote share.

 

Why it disappeared, I have no idea.  I had updated the UNRaid OS to 6.12.10, but that was weeks ago.

 

Boy, I hate computers...

  • 6 months later...
On 3/4/2024 at 4:00 PM, Anon said:

Hello everyone.

I got it working again.

 

Step taken:

- Took the USB Stick and saved the config colder

- Flashed the USB Stick with the USB-Creator

- Copied the config folder back onto it -> Same Error

- Removed the following files: "passwd", "secrets.tdb", "shadow", "smbpasswd"

- Restarted -> SMB Working

 

Then I just had to recreate the users. But the awesome thing was I only need to set the name and password. The exact permissions on the shares were retained in the share config. So it only took ~2 min to get all users back and now its happily chugging along.

 

Thanks so so much for all your help


I can confirm that this solved the problem:
My old usb stick died and after I copied my backup to a new usb stick I couldn't access my shares on multiple machines, windows and linux ("permission denied").
I could connect to a new share if I used a new user as well (I think I couldn't access the old shares with the new user, but I'm not sure)
I shutdown the unraid machine, took the usb stick to another machine and deleted the four files from the /config folder.
I rebooted the unraid machine and was asked to create a password for root (I took the same as before).
All users (except root, of course) were gone, and I recreated them with the same name/password.
Now all machines connect to the shares again.

Edited by jiqWFWegqq

  • 2 months later...

After trying many things, including upgrading from UR 6 to 7, this command brought ALL my SMB shares back to life! 🙂

 

mv /boot/config/smb-extra.conf /boot/config/smb-extra.conf.bak /etc/rc.d/rc.samba restart
 

Edited by cluengas

  • 3 weeks later...
On 3/10/2025 at 7:56 PM, cluengas said:

After trying many things, including upgrading from UR 6 to 7, this command brought ALL my SMB shares back to life! 🙂

 

mv /boot/config/smb-extra.conf /boot/config/smb-extra.conf.bak /etc/rc.d/rc.samba restart
 

This paired with reapplying my SMB User pasword in Unraid, made all my shares on both Windows and MacOS reconnect :D

  • 2 months later...

I'm having an issue with my SMB also but it only happens in Windows, my Macbook can flawlessly access my SMB share.

When I try the following command in the console (mv /boot/config/smb-extra.conf /boot/config/smb-extra.conf.bak /etc/rc.d/rc.samba restart), I get the following error message:

mv: target 'restart': No such file or directory

Am I doing something wrong? I really need to access my SMB from my windows computer for work.

  • Community Expert
1 hour ago, smug-damnation4228 said:

I'm having an issue with my SMB also but it only happens in Windows, my Macbook can flawlessly access my SMB share.

When I try the following command in the console (mv /boot/config/smb-extra.conf /boot/config/smb-extra.conf.bak /etc/rc.d/rc.samba restart), I get the following error message:

mv: target 'restart': No such file or directory

Am I doing something wrong? I really need to access my SMB from my windows computer for work.

Try this from the release notes of ver6,12,15:

image.png

  • 1 month later...
On 6/13/2025 at 3:42 AM, Frank1940 said:

Try this from the release notes of ver6,12,15:

image.png

My SMB problem are solved after deleting windows credentials, and the deleting the files in unraid config folder: "passwd", "secrets.tdb", "shadow", "smbpasswd" and then make a windows credential as of that screenshot here, frank has uploadet

And I will add to it, that this problem came after my usb stick died, and I bought a new one, and transfered the backup to the new stick, so where the fail happened, I do not know

Thx alot guys, it saved the last hair on my head ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.