Changing freepbx/fpbx default username password

Get help with installing and running AsteriskNOW.

Moderators: Moderator, Support

Changing freepbx/fpbx default username password

Postby mobinet » Fri Jun 25, 2010 11:39 am

The default installation of asteriskNOW has the amportal.conf settings to use AUTHTYPE=database for authentication and a default username/password combination that is throwing some people for a loop - in terms of changing the default password. The reason why people are not able to locate the freepbx user information in any of the files to change is that it is actually stored in the MySQL database user tables not files. I don't know why this username/password is setup like this and no clear mention of changing it made from what I could see - but I'll admit I didn't do a full RTFM. From reading some other posts in this forum it appears to be a common situation.

In order to change the freepbx/fpbx username and password combination (from what I can derive) you will need to follow these steps.

- from a command prompt as root run the command “mysql” without the quotes. Depending on if you’ve overridden the username/password combination you might need to pass switches “mysql –u root –p” or some combination to login.
- once inside the mysql prompt run the SQL statement “use mysql”
- then run the SQL statement “UPDATE user set Password=PASSWORD(‘newsecretpassword’) WHERE User=’freepbx’
- then run the SQL statement “flush privileges”
- exit the mysql prompt
- use a text editor to open /etc/amportal.conf
- find the AMPDBPASS line and change the value fpbx to your newsecretpassword that you set earlier in MySQL
- text editor next on /etc/asterisk/cdr_mysql.conf
- find the fpbx password value and replace the old password with your newsecretpassword
- text editor next on /etc/asterisk/extensions_additional.conf (I know you shouldn’t edit this directly but you need to since you can’t “Apply Changes” to regenerate this file yet)
- find the fpbx password value and replace the old password with your newsecretpassword
- now that you’ve changed these files execute a amportal restart command and you should be good to go

There might be a “proper” way of doing this but since no one seems to know what that is here is a way to do it in the meantime to close this HUGE GAPING SECURITY HOLE.

--
Sean O'Grady
MobiNet
http://www.mobinet.ca
mobinet
Newsterisk
 
Posts: 1
Joined: Fri Jun 25, 2010 11:35 am

Re: Changing freepbx/fpbx default username password

Postby malexherron » Wed May 02, 2012 9:26 pm

in asteriskNOW version 2.0 i also had to change the password in /etc/asterisk/freepbx.conf
malexherron
Newsterisk
 
Posts: 1
Joined: Wed May 02, 2012 1:54 pm


Return to AsteriskNOW Support

Who is online

Users browsing this forum: No registered users and 1 guest