Examples Using chmod

Examples Using chmod#

Below are examples of making changes to permissions:

Chmod for changing on Subdirectories#

chmod on subdirectories or Files:
Operate on directories only:
find . -type d -exec chmod 770 {} \;

Operate on files only:
find . -type f -exec chmod 660 {} \;

Owner and Groups can Read#

Operate on directories only:
find . -type d -exec chmod 770 {} \;

Operate on files only:
find . -type f -exec chmod 660 {} \;

More Information#

There might be more information for this subject on one of the following: