Jump to content
RobJ

Ransomware resistance

129 posts in this topic Last Reply

Recommended Posts

Wow,

 

This was a great read. Just wanted to say thank you for the info provided from everyone. 

Share this post


Link to post
On 11/19/2017 at 6:57 PM, Bjonness406 said:

So if I want to make all the files uneditable, can I run this command?


find /mnt/disk1/Media/ -type f -exec chattr +i "{}" \;
find /mnt/disk2/Media/ -type f -exec chattr +i "{}" \;

 

A question to that command if I want to just "immutable" certain files. I was trying e.g.:

find /mnt/disk2/Kino/*.m4v -type f -exec chattr +i "{}" \;

That is working well except with sub-directories. I was trying to use the -R (recursively changes attributes of directories and their contents) flag but this is not working. HAs anyone tried this? Thanks a lot.

Share this post


Link to post
1 hour ago, EdgarWallace said:

A question to that command if I want to just "immutable" certain files. I was trying e.g.:


find /mnt/disk2/Kino/*.m4v -type f -exec chattr +i "{}" \;

That is working well except with sub-directories. I was trying to use the -R (recursively changes attributes of directories and their contents) flag but this is not working. HAs anyone tried this? Thanks a lot.

 

Try:

 

find /mnt/disk2/Kino -type f -name \*.m4v -print

 

 

if that produces what you what then:

 

find /mnt/disk2/Kino -type f -name \*.m4v -exec chattr +i "{}" \;

Share this post


Link to post

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.