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.

SMB extra config - root share with excluded (or included) folders

Featured Replies

I've set up a rootshare for /mnt/user/ in the SMB extra config. I'd like to prevent sharing certain folders though, e.g. appdata. Is there any way to exclude a path from the share, or otherwise is it possible to set up multiple paths under the same share (i.e. 'include')?

  • 1 month later...

looking for a bit of info on this also but can't quite make it work as needed.

 

With the below settings and in Each Shares SMB Security set to Private, a guest has no access. anonymous users can't access certain shares (they will still see the folder) but I am struggling to also get proper access as a user also though.

 

personally I have this in my SMB Extra settings

[rootshare]
path = /mnt/user
comment =
browseable = yes
valid users = matt
write users = matt
vfs objects = 

  • Community Expert
On 9/29/2021 at 6:08 AM, Mushin said:

I've set up a rootshare for /mnt/user/ in the SMB extra config. I'd like to prevent sharing certain folders though, e.g. appdata. Is there any way to exclude a path from the share, or otherwise is it possible to set up multiple paths under the same share (i.e. 'include')?

Rather than sharing  /mnt/user, share /mnt/user0  This will exclude the cache-only shares as I remember. 

 

To see what this path includes run this command string in the terminal window:

ls -al /mnt/user0

 

I know what you (both) are trying to do but I don't know if I totally agree with the concept.  Make sure that you have all of the required parameters (with the proper syntax) in the SMB Extras file.   If you miss anything (or have a syntax error), you could open a massive security hole.  (This is not something for a neophyte to be trying to do!!!)

  • Community Expert
2 hours ago, Frank1940 said:

Rather than sharing  /mnt/user, share /mnt/user0  This will exclude the cache-only shares as I remember. 

This would exclude any files on cache, and include any files on the array, regardless of the setting for a share.

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.