Vishesh Gupta Posted August 4, 2018 Share Posted August 4, 2018 Dear Sir 1) I would like to know is there an option to set up user permissions in such a way, that the user can Read / Write to the SMB share, but not Delete any file/folder. This is so as to prevent any catastrophic data loss in case of accidental deletion. 2) If the above cannot be achieved, the second best option would be the recycle bin plugin, do we have to separately install it on the latest version of UnRaid, or does it come pre-installed? Best regards Quote Link to comment
trurl Posted August 4, 2018 Share Posted August 4, 2018 There is a Recycle Bin plugin. Check in Community Applications. It only recycles deletes that were done over the network. Quote Link to comment
Vishesh Gupta Posted August 4, 2018 Author Share Posted August 4, 2018 3 hours ago, trurl said: There is a Recycle Bin plugin. Check in Community Applications. It only recycles deletes that were done over the network. Shall I assume that the first option, that is " set up user permissions in such a way, that the user can Read / Write to the SMB share, but not Delete any file/folder." is NOT POSSIBLE? Quote Link to comment
itimpi Posted August 4, 2018 Share Posted August 4, 2018 15 minutes ago, Vishesh Gupta said: Shall I assume that the first option, that is " set up user permissions in such a way, that the user can Read / Write to the SMB share, but not Delete any file/folder." is NOT POSSIBLE? I would think so. Never seen any suggestion that this might be possible. Quote Link to comment
John_M Posted August 5, 2018 Share Posted August 5, 2018 The first option is not possible since logically within Linux the ability to write to a file implies the ability to delete it. Quote Link to comment
John_M Posted August 6, 2018 Share Posted August 6, 2018 OK, there might be a way to kludge Linux into allowing files to be written but not deleted but it's messy and not supported by the unRAID GUI. It involves the use of either the sticky bit (POSIX permissions) or the immutable flag (which relies on the file system supporting that particular extended attribute - it seems that XFS does). You'd need to change the permissions and ownership of both the file to be protected and its containing folder and I'm not sure how it would then work with SAMBA. For more information see here. In summary then, if you don't mind doing some command line work you might be able to kludge it but for all practical purposes it's better to assume that it can't be done. 1 Quote Link to comment
White_King Posted August 24, 2020 Share Posted August 24, 2020 You can achieve this mapping the shares through an FTP server. I used FileZilla and although I encountered a lot of problems it is working now. Here are some tips 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.