imod is an interactive chmod
tool.
It is written in python and uses a raw terminal to allow it to catch all escape sequences.
- Ctrl + C Exit
- Return Apply chmod permissions to file [& Exit]
- Up Arrow Increase octal permission
- Down Arrow Decrease octal permission
- Left Arrow Move cursor left in permissions
- Right Arrow Move cursor right in permissions
- [r|w|x|-] Set one or more of these ascii permissions to that group
- [0-7] Set one octal permission to that group
Basic demo of imod showing a use case
imod can use "r" "w" "x" "-" or a combination of the 4 to write an octal to the group directly.
It has a 1 sec timeout however, so you need to press the keys in quick succession.
imod can also use numbers [0-7] to directly set the value of the group.
No need to press arrow keys if you know exactly what you want.