2
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.
I get:
.: 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 ?
To my understanding, for recursive action, you need either
--recursive
or-R
. I just want to make sure that what you put in your question is the command you actually used (to avoid misunderstandings) :) – Der Hochstapler – 2012-06-04T12:26:32.870Yes, I've used -r instead of the CAPITAL -R so, I've used -r lowercase. – MEM – 2012-06-04T12:27:36.837
You almost certainly almost never want 777, by the way. – Paused until further notice. – 2012-06-04T12:28:50.980
@MEM: That may be your whole problem. – Der Hochstapler – 2012-06-04T12:28:54.630
@OliverSalzburg : I realize that. The problem is, I don't know how to revert this. :/ – MEM – 2012-06-04T12:30:19.377