https://github.com/lpenz/execpermfix
"Fixes" executable permission of files and diretories in Unix
https://github.com/lpenz/execpermfix
gplv2
Last synced: 3 days ago
JSON representation
"Fixes" executable permission of files and diretories in Unix
- Host: GitHub
- URL: https://github.com/lpenz/execpermfix
- Owner: lpenz
- License: gpl-2.0
- Created: 2009-07-13T00:19:22.000Z (almost 16 years ago)
- Default Branch: main
- Last Pushed: 2025-03-19T23:03:40.000Z (about 2 months ago)
- Last Synced: 2025-04-03T10:05:04.732Z (about 1 month ago)
- Topics: gplv2
- Language: C
- Homepage:
- Size: 112 KB
- Stars: 5
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
[](https://github.com/lpenz/execpermfix/actions/workflows/ci.yml)
[](https://coveralls.io/github/lpenz/execpermfix?branch=main)
[](https://packagecloud.io/app/lpenz/debian/search?q=execpermfix)# 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
~~~[.sh]
execpermfix -h
execpermfix -V
execpermfix [-v] [-n]
~~~### 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.