bar top left
bar top right
left curve
right curve
Welcome, Guest

how to change the default asteriskuser password
(1 viewing) (1) Guest
Go to bottom
Post Reply
Post New Topic
Page: 12
TOPIC: how to change the default asteriskuser password
*
#73040
how to change the default asteriskuser password 1 Year, 2 Months ago Karma: 1
A client needs an Elastix box secured. It seems that Elastix by default has a password for 'asteriskuser' which will allow login on the web interface (unembedded FreePBX, I believe). However, I can't find good documentation on how to change that password. There are lots of config files referencing either that user or that password, but I'm not sure if any/all of them need to be changed or if this is stored in a database somewhere totally separate.

Help?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
caldwell
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#73553
Re:how to change the default asteriskuser password 1 Year, 2 Months ago Karma: 156
I believe later versions of FreePBX have this patched, unfortunately Elastix does not actually use FreePBX but their own forked up and old version. (dicko doesn't so can't check that vulnerability, he posted a bug in the Elastix bug-tracker on this matter, but we as yet await a valid response)

A workaround might be to go the old time honored htaccess route and not allow asteriskuser until we get clarification by PaloSanto

home.golden.net/htaccess.html

but a good point to bring up.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dicko
Ethically, I no longer support PaloSanto, Sorry.
Platinum Boarder
Posts: 4100
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Not available Birthday: 01/21
Last Edit: 2011/03/12 10:06 By dicko.
There are other solutions!!
Reply Quote
 
#73574
Re:how to change the default asteriskuser password 1 Year, 2 Months ago Karma: 109
What I would do is the following:

1. mysql -uroot -p (you will need to enter the root password)
2. use mysql;
3. set password for 'asteriskuser'@'localhost' = PASSWORD('my.New_PaSSword.20o0');
(you will need to put your new password instead of my.New_PaSSword.20o0)
4. quit
5. Edit /etc/amportal.conf
Set the password for AMPDBPASS (the same used on step #3)
6. Edit /etc/asterisk/cdr_mysql.conf
Set the password for asteriskuser used on step #3
7. cd /var/wwwhtml/modules/
Execute:
grep -r "asteriskuser" *
8. Change the password for all files listed, use the same password for step #3
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
jgutierrez
Moderator
Posts: 3545
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male jgutierr_007@hotmail.com Location: Santiago de Guayaquil - Ecuador Birthday: 08/07
Do you want a fast response service?
Do you want more help?
Try our Official Elastix Paid Support Service(English/Español):
support.palosanto.com/elastixChatServer.php

Get your support tickets from:
store.palosanto.com


Soporte Elastix Palosanto Solutions
Santiago de Guayaquil
Reply Quote
 
#75805
Re:how to change the default asteriskuser password 1 Year, 1 Month ago Karma: 1
jgutierrez wrote:
What I would do is the following:

7. cd /var/www/html/modules/
Execute:
grep -r "asteriskuser" *
8. Change the password for all files listed, use the same password for step #3


I found several instances of 'asteriskuser,' but the files there do not contain the password referenced previously in amportal.conf. Have they changed this to dynamically use the password from other sources, or am I supposed to hard code the new password in these files somewhere?

Thanks for your help.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
caldwell
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#75809
Re:how to change the default asteriskuser password 1 Year, 1 Month ago Karma: 109
Paste the reference file and the line that has a different password
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
jgutierrez
Moderator
Posts: 3545
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male jgutierr_007@hotmail.com Location: Santiago de Guayaquil - Ecuador Birthday: 08/07
Do you want a fast response service?
Do you want more help?
Try our Official Elastix Paid Support Service(English/Español):
support.palosanto.com/elastixChatServer.php

Get your support tickets from:
store.palosanto.com


Soporte Elastix Palosanto Solutions
Santiago de Guayaquil
Reply Quote
 
#75810
Re:how to change the default asteriskuser password 1 Year, 1 Month ago Karma: 1
jgutierrez wrote:
Paste the reference file and the line that has a different password

This is unclear to me. Would you mind giving an example?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
caldwell
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#75851
Re:how to change the default asteriskuser password 1 Year, 1 Month ago Karma: 109
Paste the output of:

grep -r "asteriskuser" /etc/asterisk/*
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
jgutierrez
Moderator
Posts: 3545
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male jgutierr_007@hotmail.com Location: Santiago de Guayaquil - Ecuador Birthday: 08/07
Do you want a fast response service?
Do you want more help?
Try our Official Elastix Paid Support Service(English/Español):
support.palosanto.com/elastixChatServer.php

Get your support tickets from:
store.palosanto.com


Soporte Elastix Palosanto Solutions
Santiago de Guayaquil
Reply Quote
 
#75870
Re:how to change the default asteriskuser password 1 Year, 1 Month ago Karma: 1
jgutierrez wrote:
Paste the output of:

grep -r "asteriskuser" /etc/asterisk/*


/etc/asterisk/cbmysql.conf:password=eLaStIx.asteriskuser.2oo7
/etc/asterisk/cbmysql.conf:user=asteriskuser
/etc/asterisk/cdr_mysql.conf:;password = eLaStIx.asteriskuser.2oo7
/etc/asterisk/cdr_mysql.conf:user = asteriskuser
/etc/asterisk/extensions_additional.conf:AMPDBUSER = asteriskuser
/etc/asterisk/res_mysql.conf:dbuser = asteriskuser
/etc/asterisk/res_mysql.conf:dbpass = eLaStIx.asteriskuser.2oo7

and for /var/www/html/modules, it is:

cdrreport/index.php: $dsn = generarDSNSistema('asteriskuser', 'asteriskcdrdb');
control_panel/index.php: $arrConf['dsn_conn_database1'] = generarDSNSistema('asteriskuser', 'asterisk');

dashboard/libs/paloSantoSysInfo.class.php: $dsn = generarDSNSistema('asteriskuser', 'asterisk');

dashboard/libs/paloSantoDataApplets.class.php: $dsnAsteriskCDR = generarDSNSistema("asteriskuser","asteriskcdrdb");

monitoring/index.php: $arrConf['dsn_conn_database'] = generarDSNSistema('asteriskuser', 'asteriskcdrdb');

myex_config/index.php: $arrConf['dsn_conn_database'] = generarDSNSistema('asteriskuser', 'asterisk');

summary_by_extension/libs/paloSantoReportCall.class.php: $pDB_cdr = generarDSNSistema('asteriskuser', 'asteriskcdrdb');
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
caldwell
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#75871
Re:how to change the default asteriskuser password 1 Year, 1 Month ago Karma: 109
I dont see any difficult or big deal changing the password for asterisk user, according to your output, the only files to change the password will be:

/etc/asterisk/cbmysql.conf (password=eLaStIx.asteriskuser.2oo7)
/etc/asterisk/cdr_mysql.conf (password = eLaStIx.asteriskuser.2oo7)
/etc/asterisk/res_mysql.conf (dbpass = eLaStIx.asteriskuser.2oo7)
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
jgutierrez
Moderator
Posts: 3545
graphgraph
User Online Now Click here to see the profile of this user
Gender: Male jgutierr_007@hotmail.com Location: Santiago de Guayaquil - Ecuador Birthday: 08/07
Do you want a fast response service?
Do you want more help?
Try our Official Elastix Paid Support Service(English/Español):
support.palosanto.com/elastixChatServer.php

Get your support tickets from:
store.palosanto.com


Soporte Elastix Palosanto Solutions
Santiago de Guayaquil
Reply Quote
 
#75872
Re:how to change the default asteriskuser password 1 Year, 1 Month ago Karma: 1
Ah. No problem changing the /etc/asterisk files. I thought I had to make changes to files in /var/www/html/modules also. And I couldn't find the password listed there anywhere.

Thanks for the help.

Somewhere along the way, Elastix needs to remove or disable this default user though. It's a security breach which shouldn't exist.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
caldwell
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 12
Moderators: Bob, jgutierrez
Protected by Spam Fighter