Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-08, 07:32 PM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Kill FreePBX Default Password Warning Messages
Unless your server is physically accessible to folks you don't trust, using the default passwords for MySQL and the Asterisk Manager does not create a risk since you must use the passwords from your PBX in a Flash server to gain access.

If you'd like to eliminate the warning messages which appear on the FreePBX System Status display in version 2.3.1.3 only, here's how.

Log into your server as root and (carefully) edit the following files and comment out the lines shown below using double-hash (//) marks at the beginning of each line:

/var/www/html/admin/header.php: lines 132, 133, 134, and 136
Code:
// default password check
$nt = notifications::create($db);
//if ($amp_conf['AMPMGRPASS'] == $amp_conf_defaults['AMPMGRPASS'][1]) {
//      $nt->add_warning('core', 'AMPMGRPASS', _("Default Asterisk Manager Password Used"), _("You are using the default Asterisk Manager$
//} else {
        $nt->delete('core', 'AMPMGRPASS');
//}

/var/www/html/admin/common/db_connect.php
: lines 64, 65, 66, and 68
Code:
// Now send or delete warning wrt to default passwords:
//
$nt = notifications::create($db);

//if ($amp_conf['AMPDBPASS'] == $amp_conf_defaults['AMPDBPASS'][1]) {
//      $nt->add_warning('core', 'AMPDBPASS', _("Default SQL Password Used"), _("You are using the default SQL password that is widely kn$
//} else {
        $nt->delete('core', 'AMPDBPASS');
//}
Refresh your browser on the FreePBX System Status page after making all the changes to each file to make sure you commented out the correct lines!!

Last edited by wardmundy : 02-05-08 at 05:11 AM.
Reply With Quote
  #2  
Old 02-05-08, 02:23 PM
Tom Phillips Tom Phillips is offline
Junior Member
 
Join Date: Oct 2007
Posts: 15
I did this now I cant see the config.php page
Reply With Quote
  #3  
Old 02-05-08, 02:36 PM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
Put it back the way it was. You either uncommented the wrong lines or you're not using FreePBX 2.3.1.3.
Reply With Quote
  #4  
Old 02-05-08, 02:55 PM
Tom Phillips Tom Phillips is offline
Junior Member
 
Join Date: Oct 2007
Posts: 15
I did
this is what is back
// default password check
$nt = notifications::create($db);
if ($amp_conf['AMPMGRPASS'] == $amp_conf_defaults['AMPMGRPASS'][1]) {
$nt->add_warning('core', 'AMPMGRPASS', _("Default Asterisk Manager Password Used"), _("You are using the default Asterisk Manager$
} else {
$nt->delete('core', 'AMPMGRPASS');
}

Last edited by wardmundy : 02-05-08 at 02:59 PM.
Reply With Quote
  #5  
Old 02-05-08, 02:56 PM
Tom Phillips Tom Phillips is offline
Junior Member
 
Join Date: Oct 2007
Posts: 15
and this
//
$nt = notifications::create($db);

if ($amp_conf['AMPDBPASS'] == $amp_conf_defaults['AMPDBPASS'][1]) {
$nt->add_warning('core', 'AMPDBPASS', _("Default SQL Password Used"), _("You are using the default SQL password that is widely kn$
} else {
$nt->delete('core', 'AMPDBPASS');
}

Last edited by wardmundy : 02-05-08 at 03:00 PM.
Reply With Quote
  #6  
Old 02-05-08, 03:01 PM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
The dollar signs (above in red) indicated incomplete lines. That would cause your problem.

Rename both of the existing files and then unzip the attachment from the root directory (cd /) of your system. Be sure to check permissions and ownership once you've unzipped the files.
Attached Files:
File Type: zip nowarns.zip (3.6 KB, 18 views)

Last edited by wardmundy : 02-05-08 at 03:15 PM.
Reply With Quote
  #7  
Old 02-05-08, 10:07 PM
jeffmac jeffmac is offline
Guru
 
Join Date: Jan 2008
Posts: 127
Works great, Ward! I used the original instructions and had no problem. I do like having those warnings eliminated.
Reply With Quote
  #8  
Old 04-02-08, 08:41 PM
Bruce Bruce is offline
Senior Member
 
Join Date: Nov 2007
Posts: 106
What is the command to change the Mysql password and change Asterisk Manager password without affecting the system which is heavily dependent on Mysql?

Thanks
Reply With Quote
  #9  
Old 04-03-08, 07:38 AM
wardmundy wardmundy is offline
Nerd Uno
 
Join Date: Oct 2007
Posts: 3,881
There's no way to change both of those passwords without heavily affecting your system. Unless there are people with physical access to your PBX in a Flash server that you don't trust, there is no need to make any change in these passwords.
Reply With Quote
  #10  
Old 04-03-08, 09:22 AM
frontline frontline is offline
Senior Member
 
Join Date: Oct 2007
Posts: 106
This would be a curious design parameter for any distribution that is not by default intended to be limited to home/in house lan based installation. FreePBX does not take this approach. In fact FreePBX lives very well with secured passwords and tracks just fine with installs and upgrades.

The problem arises with PBX ina Flash due to it's design model relying largely on closed source compiled maintenance scripts. If the option was given to supply secured passwords to the script or even better coded to track existing passwords in the manner of FreePBX the "problem" largely goes away and the installation could follow whatever security choice the user makes.

At a minimum PBX ina FLash could revert to open source scripting and allow simple password editing for those that want to put forth the effort. As it is a secured installation is left with no choice but to abandon the auto compiled script model and go it alone for updates and maintenance.

FreePBX is the source of much of the MySQL database that is being secured. Rather than hacking FreePBX to eliminate the warnings they should be petitioned to change the design if that is the desired affect.

Servers that are installed outside a local lan will be subject to physical access by people that you don't trust whether or not they are successful in breaking into code that is not always written with boiler plate security in mind. I never have a day when the logs don't reflect hacker trolling. The ability to use secured passwords is a basic requirement.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:01 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2008, Ward Mundy & Associates