PzrrL Posted February 26, 2020 Share Posted February 26, 2020 I have UD installed and SMB turned on for UD. Now I am having 2 shares enabled under UD, so they are /disks/share1 and /disks/share2. I would like to have different SMB permission for them. For example, only user_a can R/W share1 and user_b can R/W share2. If I enabled R/W for user_a and user_b under UD settings, then both of them can access both the shares, which is not the case I want. May I know how can I achieve this? Thanks! Quote Link to comment
testdasi Posted February 27, 2020 Share Posted February 27, 2020 2 ways I can think of: Use a custom smb config file. The UD SMB is in itself just a custom SMB config file. (Hint: by "include" the file, you can edit the underlying file and restart SMB for it to work, instead of needing to stop the array if you edit the Unraid own config through the GUI.) Have a cache-only share with the different permission and then create a symlink in the top folder that link to your corresponding UD mounts. I am using both methods at the moment. Quote Link to comment
PzrrL Posted February 27, 2020 Author Share Posted February 27, 2020 Thanks for your reply. 32 minutes ago, testdasi said: Use a custom smb config file. The UD SMB is in itself just a custom SMB config file. (Hint: by "include" the file, you can edit the underlying file and restart SMB for it to work, instead of needing to stop the array if you edit the Unraid own config through the GUI.) May I know how exactly this work? Not sure how to do it and don't know where to start... 32 minutes ago, testdasi said: Have a cache-only share with the different permission and then create a symlink in the top folder that link to your corresponding UD mounts. Do you have to worry about the permission and ownership issue in this way? Does the permission set to the cache-only shares directly apply to the UD mounts with no conflict? Thanks! 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.