Reset file permissions via file introspection. https://code.ivysaur.me/chmod-reset
This repository has been archived on 2020-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
mappu 109c670ef8 commit all archived files 2017-04-23 00:00:00 +00:00
dist-archive commit all archived files 2017-04-23 00:00:00 +00:00
.legacy-codesite.toml initial meta commit 2017-04-23 00:00:00 +00:00
README.md commit all archived files 2017-04-23 00:00:00 +00:00

README.md

chmod-reset

Reset file permissions via file introspection.

When migrating between Cygwin and Linux proper, or when FAT/NTFS filesystems are in use, permissions may be lost. This script makes a best effort to reset file permissions to something "normal" by performing deep file introspection to determine whether a file is executable.

Tags: sysadmin

Usage

About:
   chmod-reset can reset file and directory permissions to something "normal".
   That's 755 for directories and executables, and 644 for other files.

Usage:
   chmod-reset [OPTIONS] [--] DIRECTORY [ DIRECTORY ... ]

Options:
   -f, --exec-check-fast   Mark files executable based on extension
   -s, --exec-check-slow   Mark files executable based on content (default)
   --help                  Display this message and exit

Changelog

2017-04-23 1.0