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.

[Plugin] Custom SMB Shares

Featured Replies

@zapbranagann

so the import from a saved file works now it imports and says it successfully imported then aboue 4 5 seconds after that message the shares populate

the changing the folder directory location still doesnt detect.. except if i change the coment with a space then backspace to just resave

least the majority of the bugs been worked out just that 1 left that i can see

  • Replies 98
  • Views 7.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • It's in CA now. But, I also did https://github.com/cslemieux/unraid-custom-smb-shares/pull/13 as pretty much the only things disallowed in SMB is leading / trailing spaces and [ ] " / \ : ; | < &g

  • EllipticSet
    EllipticSet

    Just updated and it no longer reboots after changing settings! 😃❤️💪

  • Frank1940
    Frank1940

    Interest find! If, on the Edit page/tab, you switch from Basic View to Advance View, you get these additional settings. I did test and, with these settings I can get directories with 777 permissions

Posted Images

if the auto detect things have changed cant be fixed easily for ya

if you can make it so the Save button can be clicked anyways so its like always on not grayed out then that would work too.. if its something you cant fix on how unraid works

once hitting save then exits then you know it saved.. if thats the only work around or its something you leave a note if you plan to change directory location just edit the comment to force the save

just ideas if not easilly fixable

Edited by comet424

  • 2 weeks later...

Thank you very much, the plugin is working great.

I have a suggestion to further improve the functionality. Is it possible to make the SMB Share plugin compatible with the official Recycle Bin plugin?

Very nice plugin! Thanks!

  • 3 weeks later...

Upgraded to 2026.06.17 so I could move the menu item to Settings.

Now when I change the "Show in top menu bar" to disabled and click Apply my system immediately starts a shutdown and reboot. After the reboot the setting is still enabled.

Edited by JHopple

  • Author
4 hours ago, JHopple said:

Upgraded to 2026.06.17 so I could move the menu item to Settings.

Now when I change the "Show in top menu bar" to disabled and click Apply my system immediately starts a shutdown and reboot. After the reboot the setting is still enabled.

I can't reproduce that on my end, and there is nothing in the code that calls unraid shutdown, it's likely that something else resulted in a shutdown that also interrupted the settings update.

Try doing the settings change again, also you might have to do a hard refresh in the browser for the top menu bar link to disappear but I just double checked on my unraid install and the setting persists and after I refresh the main page the SMBShares link is no longer in the top menubar.

  • Author
On 5/28/2026 at 4:31 AM, Gepelmario said:

Thank you very much, the plugin is working great.

I have a suggestion to further improve the functionality. Is it possible to make the SMB Share plugin compatible with the official Recycle Bin plugin?

I will look into it, I'm not super familiar with the Recycle Bin Plugin

On 6/18/2026 at 2:55 PM, zapbranagann said:

I can't reproduce that on my end, and there is nothing in the code that calls unraid shutdown, it's likely that something else resulted in a shutdown that also interrupted the settings update.

Try doing the settings change again, also you might have to do a hard refresh in the browser for the top menu bar link to disappear but I just double checked on my unraid install and the setting persists and after I refresh the main page the SMBShares link is no longer in the top menubar.

I have retried this multiple times and I also tried changing other settings and anytime the Apply button is clicked the system goes to the shutdown display and reboots and no settings are saved.

This is completely reproduceable. I can post a screen capture if it would help.

Everything else works fine, so this does not prevent me from using the plugin but I can't change any of the settings.

Please let me know if there is anyway I can help diagnose the issue, otherwise I will just continue to use the plugin as is.

Thanks for the work.

J.Hopple

  • Author
42 minutes ago, JHopple said:

I have retried this multiple times and I also tried changing other settings and anytime the Apply button is clicked the system goes to the shutdown display and reboots and no settings are saved.

This is completely reproduceable. I can post a screen capture if it would help.

Everything else works fine, so this does not prevent me from using the plugin but I can't change any of the settings.

Please let me know if there is anyway I can help diagnose the issue, otherwise I will just continue to use the plugin as is.

Thanks for the work.

J.Hopple

Which version of Unraid are you running? I can't reproduce this on my end, this is truly a head-scratcher for me 😅

@Frank1940 (or anyone else in the thread), would you be able to try this out to see if you can reproduce this? @Squid do you have any ideas what would cause the symptoms @JHopple is reporting?

14 minutes ago, zapbranagann said:

Which version of Unraid are you running? I can't reproduce this on my end, this is truly a head-scratcher for me 😅

7.3.1 with internal boot.

Attaching diagnostics and a download of the SMBSharesSettings page source

tower-diagnostics-20260624-1315.zip

SMBSharesSettings.txt

Edited by JHopple

  • 2 weeks later...
On 6/18/2026 at 4:23 PM, JHopple said:

Upgraded to 2026.06.17 so I could move the menu item to Settings.

Now when I change the "Show in top menu bar" to disabled and click Apply my system immediately starts a shutdown and reboot. After the reboot the setting is still enabled.

Having the same issue, also when changing Enable SMB Shares from Enabled to Disabled.

Manually editing /boot/config/plugins/custom.smb.shares/settings.cfg to set SERVICE="disabled" does the trick, the plugin correctly goes into disabled state.

There's no show in top menu bar value in settings.cfg to try, maybe adding one should do the trick.

Edited by EllipticSet
Typo

On 6/18/2026 at 2:37 PM, zapbranagann said:

I will look into it, I'm not super familiar with the Recycle Bin Plugin

I have a few suggestions that might simplify integration:

  • Limit custom share paths to /mnt/user. The /mnt/disks and /mnt/remotes paths are managed by Unassigned Devices (UD). Those mount points can appear and disappear as devices are mounted, unmounted, attached, or detached, so they are not as stable as Unraid user shares. UD already manages SMB sharing for those paths, so I don't think they should be offered as Custom SMB Share locations.

  • Use a working configuration in /etc/samba. Currently the custom share configuration is stored on the flash drive at /boot/config/plugins/custom.smb.shares/smb-custom.conf and included via the "SMB Extras" mechanism. I think it would be cleaner to keep the persistent configuration on the flash drive, but generate a working copy in RAM at /etc/samba/smb-custom.conf and include it directly with: 'include = /etc/samba/smb-custom.conf'. That's consistent with how Samba's runtime configuration is managed elsewhere in Unraid.

Edited by dlandon

On 6/18/2026 at 9:23 AM, JHopple said:

Upgraded to 2026.06.17 so I could move the menu item to Settings.

Now when I change the "Show in top menu bar" to disabled and click Apply my system immediately starts a shutdown and reboot. After the reboot the setting is still enabled.

I submitted a PR to fix this issue.

  • Author
8 hours ago, dlandon said:

I've been looking at this plugin because I wanted to see if I could add support for it in the 'Recycle Bin - Next' plugin. It's a clever approach and I think there is an opportunity for the two plugins to work together.

I have a few suggestions that might simplify integration:

  • Limit custom share paths to /mnt/user. The /mnt/disks and /mnt/remotes paths are managed by Unassigned Devices (UD). Those mount points can appear and disappear as devices are mounted, unmounted, attached, or detached, so they are not as stable as Unraid user shares. UD already manages SMB sharing for those paths, so I don't think they should be offered as Custom SMB Share locations.

  • Use a working configuration in /etc/samba. Currently the custom share configuration is stored on the flash drive at /boot/config/plugins/custom.smb.shares/smb-custom.conf and included via the "SMB Extras" mechanism. I think it would be cleaner to keep the persistent configuration on the flash drive, but generate a working copy in RAM at /etc/samba/smb-custom.conf and include it directly with: 'include = /etc/samba/smb-custom.conf'. That's consistent with how Samba's runtime configuration is managed elsewhere in Unraid.

  • Recycle Bin integration. With a working configuration in /etc/samba/smb-custom.conf, the Recycle Bin plugin can automatically update the custom shares with the appropriate Samba recycle directives before Samba is reloaded. The Custom SMB Shares plugin would simply update its configuration and then invoke the Recycle Bin plugin to apply or remove the recycle settings as needed. I've already implemented this on my side, so the integration point is ready if you're interested. I can give you the php code to do this. It's just a few lines of code put where you would reload samba on a change in share configurations.

I think this would provide seamless Recycle Bin support for Custom SMB Shares while keeping the responsibilities of the two plugins nicely separated.


Thanks, I will try to work on those changes sometime this week (or weekend).

  • Author
1 hour ago, dlandon said:

I submitted a PR to fix this issue.

I look forward to seeing the fix for this, I really have no idea what is causing that behavior.

On 7/7/2026 at 1:52 AM, zapbranagann said:


Thanks, I will try to work on those changes sometime this week (or weekend).

Do you plan to implement those PR fixes in a future release?

  • Author
10 hours ago, EllipticSet said:

Do you plan to implement those PR fixes in a future release?

Yes, I'll have a release out later today, just working on the changes now.

17 hours ago, zapbranagann said:

Yes, I'll have a release out later today, just working on the changes now.

Just updated and it no longer reboots after changing settings! 😃❤️💪

  • 1 month later...

@zapbranagann

hi i trying to add a couple remote shares

but i get error message

This path is managed by Unassigned Devices (/mnt/disks, /mnt/remotes), which already provides SMB for it. Use a path under /mnt/user instead.

and i dont really understand what its talking about as i need a share

called 'Home Videos' and points to /mnt/remotes/192.168.0.3_Family Files/!Home Videos/

and 'Pictures' and points to /mnt/remotes/192.168.0.3_Family Files/!Pictures/

so i not sure why i cant do it and dont truly understand the error or how the UD page can create those links to show up as custom Samba Shares so i confused

i also need to add more user shares like

'Michelles Files' and points to /mnt/remotes/192.168.0.3_Family Files/Michelles Files/

'Larrys Files' and points to /mnt/remotes/192.168.0.3_Family Files/Larrys Files/

'Jason Files' and points to /mnt/remotes/192.168.0.3_Family Files/Jasons Files/

i install this app to be able to do this stuff... if i can no longer do this.. is there a way to down grade older version or alter this smb shares code to remove the lock out so i can do what i need it to do

what are the work arounds now that i need to make these work now?

Edited by comet424

1 hour ago, comet424 said:

what are the work arounds now that i need to make these work now?

There is way to trick UD and get it to do what you want. I have a UD disk mounted:
Screenshot 2026-08-26 173654.png

With file contents:
Screenshot 2026-08-26 173730.png

I add remote shares for the UD disk folders I want to share:
Screenshot 2026-08-26 173757.png

You can change the name of the share by changing the "Mount Point". Be sure to turn on the share switch.

So then you see this in the Windows Shares:
Screenshot 2026-08-26 174153.png

When you add the Remote Share, you have to enter the share folder manually because the scan for the shares only shows the top level share. You can add any folder on the UD disk.

You can do the same thing to a remote share by adding another remote share that points to the remote share sub folders.

  • Add a main remote share "192.168.0.3_Family Files/" with Mount Point "192.168.0.3_Family Files". Be sure to enable sharing.

  • Add a remote share "192.168.0.3_Family Files/!Home Videos/" with Mount Point "Home VIdeos". Be sure to enable sharing.

  • Add a remote share "192.168.0.3_Family Files/!Pictures/" with Mount Point "Pictures". Be sure to enable sharing.

  • And any others you want.

You will then see "Home VIdeos" and "Pictures" in the network shares.

You need to add the sub folders manually in the add a remote share dialog.

@dlandon i dont think i doing it right.. as what i had before was working fine till the programer had to break it so i cant do what i did before

so i tried what you said kinda as i was kinda confused.. what i did was add server 192.168.0.3/Family Files and then i tried Share Folder Landons Files but it went white i not sure if thats because i already have the share already..

and i dont know how you mount a remote share to point to the remote share as it asks for the ip address of the server..

but this is what i have .. as i need to add more users and the custom shares was a good program but not so much now since the reason i liked it is now locked out .. so i dont get it.. and he didnt provide instructions how to do what is grand fathered in how you do it in UD shares.. so i lost

smb1.png

smb2.png

i did try

192.168.0.3 as the server

and Share I used

Family Files/nextcloud

and i get it to be blue but i cant mount it i get error

Device '//192.168.0.3/Family Files/nextcloud' failed to mount.

Check the syslog for details.

smb3.png

and the sys logs show

Aug 26 19:52:38 K-9 kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Aug 26 19:52:38 K-9 unassigned.devices: Remote Share '//192.168.0.3/Family Files/nextcloud' failed to mount.
Aug 26 19:53:08 K-9 kernel: CIFS: VFS: \\192.168.0.3 Send error in SessSetup = -13
Aug 26 19:53:08 K-9 kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Aug 26 19:53:08 K-9 unassigned.devices: Remote Share '//192.168.0.3/Family Files/nextcloud' failed to mount.
Aug 26 19:53:19 K-9 kernel: CIFS: VFS: \\192.168.0.3 Send error in SessSetup = -13
Aug 26 19:53:19 K-9 kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Aug 26 19:53:19 K-9 unassigned.devices: Remote Share '//192.168.0.3/Family Files/nextcloud' failed to mount.
Aug 26 19:53:27 K-9 kernel: CIFS: VFS: \\192.168.0.3 Send error in SessSetup = -13
Aug 26 19:53:27 K-9 kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Aug 26 19:53:28 K-9 unassigned.devices: Remote Share '//192.168.0.3/Family Files/nextcloud' failed to mount.
Aug 26 19:53:32 K-9 kernel: CIFS: VFS: \\192.168.0.3 Send error in SessSetup = -13
Aug 26 19:53:32 K-9 kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Aug 26 19:53:32 K-9 unassigned.devices: Remote Share '//192.168.0.3/Family Files/nextcloud' failed to mount.
Aug 26 19:56:40 K-9 kernel: CIFS: VFS: \\192.168.0.3 Send error in SessSetup = -13
Aug 26 19:56:40 K-9 kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Aug 26 19:56:40 K-9 unassigned.devices: Remote Share '//192.168.0.3/Family Files!!Letters' failed to mount.

Edited by comet424

plus i have 10 more users at least to add on but since the custom shares doesnt work like it worked before i need something simple for users i guess i need some program that creates a shares for each user... i guessing its probably some windows or novel netware feature.. where each user gets tehre own directory with the read writes like i have setup each user can only access the share in the custom... is there another program you know of does this so like if you had 100 users then there be 100 remote user shares connected to 100 unraid user accounts

probably need now windows Server to mount each share to a remote share under my Family Files share.. as the custom share did that fine but now i need to transisiton i was trying to edit the custom-shares.conf file and the json file on the flash drive to add folders but then it wiped out everything... when i deleted it then they came back.. so he put some kinda lock on things

35 minutes ago, comet424 said:

and the sys logs show

The -13 error is a credentials issue. Check your credentials.

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.