How to change Elastix 2.0.3 admin password?

arrow1

Joined
Nov 21, 2010
Messages
89
Likes
0
Points
0
#1
I have access to root in cli and FreePbx. Elastix GUI cannot accept any more password that I did not change it.

After installing WEBCONF Elastix admin passowrd stop working.

Is there any way to change it from CLI or FreePBX?

THX
 

arrow1

Joined
Nov 21, 2010
Messages
89
Likes
0
Points
0
#2
answer is simple:


sqlite3 /var/www/db/acl.db “UPDATE acl_user SET md5_password = ‘`echo -n password|md5sum|cut -d ‘ ‘ -f 1`’ WHERE name = ‘admin’”

one linear
 

Mike056056

Joined
Aug 25, 2011
Messages
6
Likes
0
Points
0
#3
HI

Should I put my password after (SET md5_password = ‘`echo -n password|md5sum)

Thanks
 

achilles

Joined
Oct 30, 2007
Messages
112
Likes
0
Points
0
#4
sqlite3 /var/www/db/acl.db "UPDATE acl_user SET md5_password = '`echo -n replacemewithrealpassw|md5sum|cut -d ' ' -f 1`' WHERE name = 'admin'"

This is the better version.
I had some problems with elastix 2.2 x64 not recognizing the password after fresh install.
 

werneck.costa

Joined
Jan 11, 2010
Messages
1
Likes
0
Points
0
#5
I'm using elastix-2.2.0-14, and for reset the admin password (freePBX) i have used this:
logged on the server as root, enter in Mysql shell:
$ mysql -p
put the password configured on the installation.
At the prompt, execute:
$ mysql> use asterisk;
testing the view capacity:
$ mysql> select * from ampusers;
the expected out is like this:

+----------+------------------------------------------+---------------+----------------+----------+----------+
| username | password_sha1 | extension_low | extension_high | deptname | sections |
+----------+------------------------------------------+---------------+----------------+----------+----------+
| admin | d033e22ae348aeb5660fc2140aec35850c4da997 | | | | * |
+----------+------------------------------------------+---------------+----------------+----------+----------+
1 row in set (0.00 sec)

### ### ###

if this appears, make the change:
$ mysql> update ampusers set password_sha1=sha1('theYourNewPassword') where username="admin";

if nothing was wrong, this is the correct out:
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 0


Best regards;
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,565
Latest member
omarmenichetti
Top