code.ivysaur.me

chmod-reset

buildbuildsuccesssuccess written inwritten inbashbash

ABOUT
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
• Initial public release

CONTACT

For bug reports, feature requests, or if you need any help, please click here to email me.