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


Shares
Contact Us On WhatsApp