17 May 2008

Removing the execute flag from many files

Here's how to recursively remove execute permissions on files that have been copied from a windows system.

find * -type f -exec chmod -x {} \;

ie, find all files (not directories), and execute a command to remove all execute permissions for each file.

1 comment:

kzarog said...

Thank you for the helpful hint!