You really shouldn't take a shortcut like you do with this instruction; it is perfectly fine to chmod 777 for all directories and chmod 666 for all files before you want to edit templates etc, but after that you really should tighten your permissions to something like 755 for directories and 644 for files!

I suggest you create a small shell script to open and close all files before and after editing them through UBBT.

Tjerk.