QUESTION IncrediblePBX 13-13 can't login to GUI when changing admin-pw-change error

RayGrasshopper

New Member
Joined
Jan 26, 2019
Messages
1
Reaction score
0
Code:
Enter new admin password (MAKE IT SECURE!!): 123456789

admin password will be changed to: 123456789
Press ENTER key to continue or Ctrl-C to abort...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1406 (22001) at line 1: Data too long for column 'password_sha1' at row 1

Done. Use browser to access FreePBX at http://

root@ip-172-31-27-135:/home/ubuntu#
 

asifshabir

New Member
Joined
Aug 7, 2020
Messages
1
Reaction score
0
Step1:
login as root.
#cd /root
#cat admin-pw-change

Look for these line

echo "admin password will be changed to: $adminpw"
read -p "Press ENTER key to continue or Ctrl-C to abort..."
mysql -u root -ppassw0rd -e "update asterisk.ampusers set password_sha1 = '`echo -n $adminpw | sha1sum`' where username = 'admin' limit 1;"
echo " "

This is your root passowrd: mysql -u root -ppassw0rd

Step2:
Gernerate a new password for admin user for GUI Access

echo -n 'yourpassword' | sha1sum | cut -d' ' -f1

You will get a long number like:

e8c36c9b6fee0easd8e15aa073349cf7asdas18ddd2f29

Step3:
Now follow these steps to set new password for user : admin
mysql -u root -ppassw0rd
mysql> select * from asterisk.ampusers;

mysql> update asterisk.ampusers set password_sha1 = 'e8c36c9b6fee0easd8e15aa073349cf7asdas18ddd2f29' where username = 'admin' limit 1;

asterisk = DB Name
ampusers: Table name

I hope it helps
 

Members online

Forum statistics

Threads
25,810
Messages
167,752
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top