Skip to content

lpenz/execpermfix

Repository files navigation

CI coveralls packagecloud

execpermfix

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.

Usage

execpermfix -h
execpermfix -V
execpermfix [-v] [-n] <files/directories>

Options

-h Help.

-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.

About

"Fixes" executable permission of files and diretories in Unix

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published