Do chmod +x /usr/local/bin/find_non_opt_files.pl Sorry, should have mentioned that. Don't run the script as root, just to be on the safe side