FreePBX admin password reset

Check for the user of the web session data

su that user
    1. Log into your FreePBX server via SSH as the root user, using a tool such as PuTTY on Windows, or Terminal on Mac.
    2. Next, bring up your FreePBX web interface in a web browser. Once the page has loaded, press Ctrl + A on your keyboard to highlight everything on the page.
    3. Locate the unique session ID on the left side of the screen, and copy this string. It will look something like this: igg56njsp8bi0h4odqnupsq963
    4. In your PuTTY or terminal window, type the following (be sure to replace the unique string with your own, and press enter):
[root@pbx ~]# fwconsole unlock igg56njsp8bi0h4odqnupsq963
Unlocking:
session unlocked!
[root@pbx ~]#

If you are using FreePBX 13 or earlier and the above gives you a ‘command not found’ error message, use the depreciated amportal command:

[root@pbx ~]# amportal a u igg56njsp8bi0h4odqnupsq963
Fetching FreePBX settings with gen_amp_conf.php..
session unlocked!
[root@pbx ~]#

  1. In your web browser, refresh the login page and you will be automatically logged in.
  2. Visit Admin -> Administrators and select your user on the right side of the page. At this point you can reset your password.

 

Leave a Comment