Using the following command you can reset for Magento file and Directory permissions?

  • find . –type f –exec chmod 755 {} ;
    find . –type d –exec chmod 644 {};
    chmod x mage

  • find –type f –exec chmod 644 {} ;
    find –type d –exec chmod 755 {} ;
    chmod +x merge

  • find . –type f –exec chmod 755 {} ;
    find . –type d –exec chmod 644 {} ;
    chmod x mage

  • find . –type f –exec chmod 644 {} ;
    find . –type d –exec chmod 755 {} ;
    chmod +x mage