Change Magento Directory Permission to enable magento connect

find . -type d -exec chmod 777 {} \;