Rule of Thumb:
Files: 666
Folders: 777
Some servers will not allow scripts to be executed out of a folder that is CHMODDED 777; if this is true on your server, your base UBB.threads folder (the one holding all of your files) and the admin folder should be 775 or 755.
Lack of proper chmods on the cache builder file should only matter for using the editor in the control panel. You can read about the chmods needed on the
UBBWiki article
Uploading the Software Files