Mushin Posted September 29, 2021 Share Posted September 29, 2021 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')? Quote Link to comment
Kuwabara89 Posted November 9, 2021 Share Posted November 9, 2021 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 = Quote Link to comment
Frank1940 Posted November 9, 2021 Share Posted November 9, 2021 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!!!) Quote Link to comment
trurl Posted November 10, 2021 Share Posted November 10, 2021 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. 1 Quote Link to comment
Squid Posted November 10, 2021 Share Posted November 10, 2021 https://askubuntu.com/questions/14444/how-do-i-blacklist-certain-directories-in-samba Quote Link to comment
Recommended Posts
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.