| Post Title | Posted | Description |
|---|---|---|
Parent Directory
|
||
| Changing permissions on a directory structure | 2006-06-27 10:32 | Mass update permissions on a folder and subfolders |
If you want to change permissions on all files in a directory structure, but leave the folder permissions untouched, here's how you would go about it.
find . -type f -exec chmod 640 {} \;
Similarly, changing permissions on all folders, but leave the files untouched…
find . -type d -exec chmod 750 {} \;
Or to run anything on the results of find…
find . -type f -exec any_script {} \;
Leave a Comment