Jump to content
We're Hiring! Full Stack Developer ×

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


Mushin

Recommended Posts

  • 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 = 

Link to comment
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!!!)

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...