execpermfix is a tool that fixes executable permissions of files and directories.
It first finds out if the file is executable or not by checking if it starts with the ELF magic number or "#!".
If the file is executable, execpermfix sets the executable bit of user/group/other only if the read bit is set. If the file is not executable, all executable bits are cleared.
Directories are always considered executable.
execpermfix [-v] [-n] <files/directories>
-V Version information.
-v Verbose, show files changed.
-n Dry-run: do not change any permissions. Use with
-v to check file with wrong permissions.