I have a need to make some folders/files (recursive) have the same permissions as that of the user. So:
- 0755 -> 0777
- 0644 -> 0666
How can I do so? Perhaps a little secret command I do know of?
If there is no easy way then perhaps I would need to create a loop and test/assign. Ultimately I only need to deal with 3 types:
Folders should be 777, most files 666, executables 777.
find
can do the work of finding files with a given permission set and running the smallest possible number ofchmod
invocations necessary to cover them.