Folder Permissions for Web Hosting: Why Not 777, and How to Set 755 or 775 in FTP or SSH

Setting a folder to 777 makes uploads work, but it also lets any process on the server write there. On most hosts 755 for folders and 644 for files is all you need.