Difference between revisions of "Change default passwords"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 3: Line 3:
After MOR installation you need to change MySQL passwords for root (which is empty) and for mor (which is 'mor').
After MOR installation you need to change MySQL passwords for root (which is empty) and for mor (which is 'mor').


For user mor you need to change password in following places:
First, execute the following command in Bash:
 
mysql -u mor –pmor
 
you should be now in MySql management console. Type in the following command:
 
SET PASSWORD FOR 'mor'@'localhost' = PASSWORD('NewPassword');
 
Where NewPassword – is your new password for mor DB.
 
next type “quit” and test new DB password using command:
 
'''mysql -u mor -pNewPassword'''
 
==Applying new DB password==
 
Next you need to change password in following places:


  /home/mor/config/database.yml
  /home/mor/config/database.yml
Line 10: Line 26:
  /var/lib/asterisk/agi-bin/mor.conf
  /var/lib/asterisk/agi-bin/mor.conf
  /home/mor/public/c2c/c2c.php
  /home/mor/public/c2c/c2c.php
==Asterisk Manager Password==
Change the password for user mor in
/etc/asterisk/manager.conf
to accomplish with password you just edited.
==Finally==


Restart Asterisk:
Restart Asterisk:
Line 33: Line 60:
Where PASSWORD is your new password.
Where PASSWORD is your new password.


In MOR GUI go to SETTINGS - AMI Settings and change manager password.


==MOR GUI password==
==MOR GUI password==

Revision as of 07:30, 26 August 2008

MOR DB password

After MOR installation you need to change MySQL passwords for root (which is empty) and for mor (which is 'mor').

First, execute the following command in Bash:

mysql -u mor –pmor

you should be now in MySql management console. Type in the following command:

SET PASSWORD FOR 'mor'@'localhost' = PASSWORD('NewPassword');

Where NewPassword – is your new password for mor DB.

next type “quit” and test new DB password using command:

mysql -u mor -pNewPassword

Applying new DB password

Next you need to change password in following places:

/home/mor/config/database.yml
/etc/asterisk/mor.conf
/etc/asterisk/res_mysql.conf
/var/lib/asterisk/agi-bin/mor.conf
/home/mor/public/c2c/c2c.php

Asterisk Manager Password

Change the password for user mor in

/etc/asterisk/manager.conf


to accomplish with password you just edited.

Finally

Restart Asterisk:

/etc/init.d/asterisk restart

And Apache:

Debian:

/etc/init.d/apache2 restart

Centos/Fedora:

/etc/init.d/httpd restart

Test new DB password

Test it in bash using command:

mysql -u mor -pPASSWORD

Where PASSWORD is your new password.

In MOR GUI go to SETTINGS - AMI Settings and change manager password.

MOR GUI password

  • Change from admin/admin to more secure
  • Also change psw for user 101 (old psw is 101)

Change DB

If you want to change DB name from mor to another one, make sure to edit /etc/asterisk/extconfig.conf and change mor to your new DB name.