Differences between version 4 and predecessor to the previous major change of chmod(1).
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Monday, November 20, 2006 9:11:44 pm | by BenStaz | Revert |
Older page: | version 2 | Last edited on Monday, June 3, 2002 6:50:01 pm | by perry | Revert |
@@ -103,8 +103,19 @@
owner. (Without the sticky bit, anyone able to write to the
directory can delete or rename files.) The sticky bit is
commonly found on directories, such as /tmp, which are
world-writable.
+
+!!Recursively Change Permissions of Just Files Or Just Folders
+
+*find <path> -type d -exec chmod 755 {} \;
+
+This will recursively search your directory tree and chmod all directories only.
+
+Chmod all files only (and ignore the directories):
+
+*find <path> -type f -exec chmod 611 {} \;
+
!!OPTIONS
Change the mode of each FILE to MODE.