Freepbx - password protection script

I’ve got asterisk and FreePBX functional on my ubuntu 8.10 box. My only issue is that Freepbx isn’t password protected.

I’ve gone through the steps in this thread:

I usually get:

  • Password is NO or Yes SQL error
    -DB Fail error when trying to go back to freepbx
    -I’ll get a user/pw login prompt but the admin/admin or admin/mypw doesn’t work

Is there an auto script out there that goes step-by-step in securing freepbx? I only wish freepbx came installed with an automatic way of resetting and password protecting freepbx! Modifying 4-5 config files and SQL settings is prone to user error and settings can be broke easily.