Recpermissions

Recpermissions is a Python script to change Linux permissions and ownership in one step. It can delete empty directories when necessary.
This script doesn't work on Windows.
- Github web page: https://github.com/turulomio/recpermissions
- Pypi web page: https://pypi.org/project/recpermissions/
- Gentoo ebuild: If you use Gentoo you can find an ebuild in https://github.com/turulomio/myportage/tree/master/app-admin/recpermissions
Usage
recpermissions
Recursively changes the ownership and permissions for all files and directories within a given absolute path.
recpermissions --user <user> --group <group> --files <PERM> --directories <PERM> <absolute_path>
Arguments:
--user <user>: The new owner for the files and directories.--group <group>: The new group for the files and directories.--files <PERM>: The octal permissions to set for all files (e.g.,644).--directories <PERM>: The octal permissions to set for all directories (e.g.,755).<absolute_path>: The absolute path to the directory to process.
remove-empty-dirs
Recursively finds and deletes empty directories within a given path.
remove-empty-dirs [--pretend] <absolute_path>
Arguments:
--pretend: If used, the script will only list the empty directories that would be deleted, without actually deleting them.<absolute_path>: The absolute path to the directory to scan for empty subdirectories.
Metadata
Release files for recpermissions 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| recpermissions-2.0.0.tar.gz | 24.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| recpermissions-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 57.0 kB
Release files / recpermissions-2.0.0.tar.gz
| Download URL | recpermissions-2.0.0.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2b7767cab6273952d0d6b873fdb4c0a9d71242d5b6940952b6286f0ebdbfa94
|
|
BLAKE2b-256 checksum How to use checksums |
6d3d7f6e39d42e2ad8e2c42832399827fd620e4b9f7dbeab8fea692cf9d6cf81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.12 Linux/6.19.3-gentoo
|
Release files / recpermissions-2.0.0-py3-none-any.whl
| Download URL | recpermissions-2.0.0-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aff090996c4b61e78b086025fe01bbea9ae094eb9896b557f05e3197634c7c8f
|
|
BLAKE2b-256 checksum How to use checksums |
8f5fb993d7863a42c7309514cda7dbc673648e15731dc6ca717226413643f533
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.13.12 Linux/6.19.3-gentoo
|
Security for recpermissions 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.