Have a look → Linux Tips - #26 by ChuckPa which uses don’t match parameters …
find <path> -type d '!' -perm 755 -exec chmod 755 {} ';'
find <path> -type f '!' -perm 644 -exec chmod 644 {} ';'
Very handy for situations like this.
Have a look → Linux Tips - #26 by ChuckPa which uses don’t match parameters …
find <path> -type d '!' -perm 755 -exec chmod 755 {} ';'
find <path> -type f '!' -perm 644 -exec chmod 644 {} ';'
Very handy for situations like this.