Finding directories having particular permissions and changing them to another

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 fixesTechnical

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (0)

Trackback URL

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com