Wednesday, April 27, 2022

[SOLVED] How to change the permission for a specific directory without affecting the permission of everything inside that directory?

Issue

I would like to ONLY change the permission of a specific directory without changing the permission of the files or directories that it contains.
I know that the following command will recursively alter the permission of all dir and files in it:

chmod -R 777

And the following will change only the files but not the directories that it contains:

chmod -r 777

Solution

chmod 777 /path/to/specific/dir



Answered By - juliokarl
Answer Checked By - Cary Denson (WPSolving Admin)