"Fixes" executable permission of files and diretories in Unix
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include
src
test
.clang-format
.gitattributes
.gitignore
.travis.yml
AUTHORS
CMakeLists.txt
CTestConfig.cmake
LICENSE.txt
README.md
execpermfix.1

README.md

Build Status codecov packagecloud

execpermfix

About

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.