Shot in the sky: do you have a script that does chmod -x on all executable files in the system that actually cannot be executed (i.e., they mistakenly have
After copying backup files from NTFS into ext4, the files became executable (html, md, txt, etc.).
I'd like to make the files non-executable, but only those that are really non-executable.
I will likely have to write the script that iterates over all files in the system (smth like
for f in ``find /path``; do intelligent_chmod -x $f; done;, where
intelligent_chmod has to look into file and identify if it is either ELF or has the first line