| Crates.io | chmod_calculator |
| lib.rs | chmod_calculator |
| version | 0.1.0 |
| created_at | 2025-05-21 05:44:48.617336+00 |
| updated_at | 2025-05-21 05:44:48.617336+00 |
| description | A tool for calculating chmod octal values and rwx style valus |
| homepage | https://github.com/pilkch/chmod-calculator |
| repository | https://github.com/pilkch/chmod-calculator |
| max_upload_size | |
| id | 1682963 |
| size | 19,939 |
Basic chmod calculator. Can convert between octal 0755 style and rwxr-xr-x style and can print a table of the permissions.
Install dependencies:
sudo dnf install rust cargo
Build everything:
cargo build
cargo test
$ ./chmod-calculator 765
rwxrw-r-x
$ ./chmod-calculator 0765
rwxrw-r-x
$ ./chmod-calculator rwxrw-r-x
765
$ ./chmod-calculator --table 765
Owner Group Other
Read x x x
Write x x
Execute x x
I kept going to chmod-calculator.com to convert to/from '0755' style permissions in ansible, but I always have a terminal open in VSCodium, so I thought why don't I just do it there? And I wanted an excuse to mess around with rust.