Skip to main content

Change files and directories permisions and owner recursivily from current directory

Project description

What is RecPermissions

It’s a script to change permissions and owner recursivily from current directory. It can delete empty directories when necessary.

Usage

Basic Example

This command will change user and group to current user and to current user main group. Files will have rw-r–r– permisions and directories rwxr-xr-x permisions. If the script finds empty dirs it will NOT remove them:

recpermissions –path /home/user/

Full Example

This command will change user and group to root user and group. Files will have rw-r—– permisions and directories rwxr-x— permisions. If the script finds empty dirs it will remove them:

recpermissions –user root –group root –files 640 –directories 750 –remove_emptydirs –path /home/user/

License

GPL-3

Dependencies

Changelog

0.2.1
  • Solved critical bug. Directory now is set tu absolut_path parameter
0.2.0
  • Added absolute path parameter to avoid errors and wrong changes
0.1.1
  • Solved bug in current path directory
0.1.0
  • Creating infrastructure

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for recpermissions, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size recpermissions-0.2.1.tar.gz (51.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page