How to Reset all Folder and File permission in magento

There is two way to Reset all Folder and File permission in magento.

1. By using SSH

a. find . -type f -exec chmod 644 {} \;
b. find . -type d -exec chmod 755 {} \;
c. chmod 550 pear

2. By Using Magneto clean Up Tool

a.Download the magento clean up tool .

b.Unzip magento-cleanup.php to the root directory where Magento is installed.

c.Browse to http://yourdomain.com/magento-cleanup.php

DOWNLOAD SOLUTION HERE