and really, the script and ubbthreads in general should check to see if it can get by on 755 and 644

ie: if running suphp or fcgi, the perms for 777 and 666 aren't required..

2c