LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing permission of folders and subfolders (https://www.linuxquestions.org/questions/linux-newbie-8/changing-permission-of-folders-and-subfolders-210448/)

pablowablo 07-27-2004 10:23 PM

Changing permission of folders and subfolders
 
I'm trying to change the permission of some of my folders, it works out ok excepth that the subfolders doesn't change with it. Is there any way where I can change the permission of the folder along with its subfolders?

ToniT 07-27-2004 10:27 PM

chmod -R

or to change just folders:
find -type d | xargs chmod
.. or if your directories has spaces in them, you have to use null terminated strings instead:
find -type d -print0 | xargs -0 chmod

pablowablo 07-28-2004 12:11 AM

I see, option -R is the one I was looking for. thanks!


All times are GMT -5. The time now is 07:46 PM.