dansushi Posted October 21, 2020 Share Posted October 21, 2020 I had an idea to avoid ransomware from attacking both my main computer and my UnRaid. I figured that if I got ransomware on my main Windows computer and the UnRaid shares were mounted on my Windows machine, then the ransomware would infect the UnRaid too. To avoid this, I mounted the shares as read only for my account with SMB, and then ran backups from Windows to UnRaid over SFTP with my backup software Beyond Compare. The problem is that the permissions for the files copied with SFTP don't match the UnRaid default of "nobody:users" and instead show up as "root:root". Is there a way for me to set it up so that when I copy files using SFTP, all the the files have the right permissions? I've attached a screenshot of files copied using SMB (above) and SFTP (below). Or, alternatively, is there another way to do what I want (avoiding ransomware taking over both computers simultaneously) that I haven't thought of? Thanks in advance. Quote Link to comment
Frank1940 Posted October 21, 2020 Share Posted October 21, 2020 You might want to consider using this method. It, basically, employs the same scheme of using an alternative way of writing to the array. Quote Link to comment
dansushi Posted October 22, 2020 Author Share Posted October 22, 2020 Thanks for the suggestion, Frank, but that wouldn't work in my case as I run a file/folder comparison backup, so it checks to see what the differences are and copies over only the files it needs. I don't use my Unraid for just Music or Movies, I use it for my entire computer backup with hundreds thousands of folders for various things. 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.