Since trixbox does not yet have an automated system to reset passwords and such, here is a guide to change default passwords.

  • Change the root password: passwd
  • For trixbox 2.6.0.7 and earlier, and Elastix systems use this step. For trixbox2.6.1+, see 6 steps below for instructions: Change the SQL password:

    mysqladmin -u asteriskuser -p password newpassword
    You also need to update this password in the
    AMPDBPASS line in /etc/amportal.conf, the "password" line in /etc/asterisk/cdr_mysql.conf, and the "dbpass" line in /etc/asterisk/res_mysql.conf
  • Change the maint password: passwd-maint
  • Change FOP password: in amportal.conf, find FOPPASSWORD=passw0rd and change it to "FOPPASSWORD=newpassword"
  • Change the ARI admin password: In /var/www/html/recordings/includes/main.conf.php, change the line $ARI_ADMIN_PASSWORD ="ari_password" to $ARI_ADMIN_PASSWORD ="newpassword"
  • To change the manager password, edit the AMPMGRPASS line in /etc/amportal.conf (replace amp111 with a new password)
  • Edit the file /etc/asterisk/manager.conf. Change the line "secret = amp111" to "secret = NewPassword

Changing the SQL password on trixbox 2.6.1+ systems:

  • mysql -u root -p
    From here, enter the mySQL root password, which is passw0rd by default

  • You will be entered into the mysql configuration page. You will see:
    mysql>

  • Type: use mysql;

  • Type all on one line: update user set password=PASSWORD("new_pass_here") where User='asteriskuser';

  • Type: flush privileges;

  • Type: quit

  • The passwords must now be updated into the required files. See below.

  • Edit /etc/amportal.conf. Change the AMPDBPASS from amp109 to the new password you just created
    Edit /etc/asterisk/cdr_mysql.conf and change the default password to the new password
    Edit /etc/asterisk/cbmysql.conf and change the default password to the new password
    If you have phpMyadmin installed, you will encounter an error upon accessing it. To fix the error, edit /var/www/html/maint/modules/phpmyadmin/config.inc.php. Scroll down and you will see the default password entered there. Replace that with the new password you created

  • Type: mysqladmin -u root -p password NewPassword
    You will be prompted for the old mysql root password, which is passw0rd by default

  • Run the following two commands:
    service mysqld restart
    amportal restart

Source and more advanced guide: http://offline.dk/andet/voip/harden.html