I made a backup to an NTFS drive, and well, this backup really proved necessary. However, the NTFS drive messed up permissions. I'd like to restore them to normal w/o manually fixing each and every file.One problem is that suddenly all my text files gained execute permissions, which is wrong ofc. So I tried:sudo chmod -R a-x folder\ with\ restored\ backup/But it is wrong as it removes the x permission from directories as well which makes them unreadable.What is the correct command in this case?
How to recursively remove execute permissions from files without touching folders?
permissions;executable;recursive
chmod -x+X -R *The -x removes execute permissions for allThe +X will add execute permissions for all, but only for directories.