LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   change permissions of all folders and sub folders (https://www.linuxquestions.org/questions/linux-general-1/change-permissions-of-all-folders-and-sub-folders-523485/)

cad 01-28-2007 10:11 AM

change permissions of all folders and sub folders
 
Please tell me if there is a command to change the permissions of all subfolders and files in folders and subfolders

colucix 01-28-2007 10:20 AM

chmod -R changes permissions recursively

tredegar 01-28-2007 10:21 AM

See man chmod

b0uncer 01-28-2007 10:21 AM

Recursive:
Code:

chmod -R o-x dirname/
would take recursively eXecution permissions off from "other" users (than owner or owner group). So just use chmod (or chown for owners) with the -R flag to make it run recursively, i.e. do the job for all sub-files and -diretories (directories are, by the way, only special files on UNIX).


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