title: Magento Permissions
body: <p>I have just moved my Magento store from cPanel to DirectAdmin (Centos).</p>
  
  <p>My problem is now with permissions.  Previously on cPanel all folders were set to 755 and files 644.  This worked great.</p>
  
  <p>However on DirectAdmin the only way I seem to be able to get everything to work (including the downloader) is by setting all folders to 777.  Is this safe to do so?</p>
  
  <p>Also what should the User and Group ownership be set to?</p>
  
  <p>Thanks! </p>