How to assign linux permissions (medium-safety version)

Last modified by kara on Thu, June 24, 2010 15:17
Source|Old Revisions  
chown -R ftpuser:apache /var/www/magentodir/
find /var/www/magentodir/ -type d -exec chmod 770 {} ;
find /var/www/magentodir/ -type f -exec chmod 660 {} ;
find /var/www/magentodir/ -name .htaccess -exec chmod 440 {} ;

Then our ftpuser and apache can access to all files of magento installation, and magento connect runs fine too