Finding directories having particular permissions and changing them to another
admin | Jun 15, 2009 | Comments 0
Issue :
To find directories with a particular permission setting and changing it to some other.
Solution:
For example,
If you want to find directories with ’777′ permissions , use :
# find . -type d -perm 777 -print
Note : You can replace the ‘.’ with the path if you want to search the sub-directories also.
To change the permissions , use :
# find . -type d -perm 777 | xargs chmod 755
Filed Under: Quick fixes • Technical
About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

1800 810 6547