I wished to have a given folder and file and all descendants, write permissions.
I wished that ALL files and folders could be recursively granted he following permissions: 777
So I tried:
chmod -r 777 ~/Folder/app/
I then got something like:
chmod: 777: No such file or directory
I then did go to
~/Folder/app/ and tried to do a
ls -la to check on permissions.
.: Permission Denied
I then did:
sudo ls -la
and then I've seen that .. special folder has: 777 permissions, but not the others.
How can I revert this, without deleting the
~/Folder/app/ folder ?
I mean: How can we allow the ls to work again without typing sudo inside that folder ? And somehow fix the mess I made by using -r instead of -R ?