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.
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 | |
|---|---|---|---|
| recpermissions-2.0.0.tar.gz | 24.6 kB | 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
|