Many people have been through this same problem either due to forgetting the root password, typing it wrong or due to console language conversion issue.
Mine was due to using a remote console which didn’t translate my keyboard properly and caused a wrong password.
So I ended up having access to the GUI screen but not the root. So first thing came to my mind is should I reformat the machine and reinstall it since it doesn’t take long time? but no I like challenges and started digging into how do I reset the password.
Since I do still have the access to console I can try from the Kernel, the default ISO install FreePBX with Sangoma 7 Distro which is based on Centos Kernel 3.10.0-8220.127.116.11 el7.x86_64.
So I first attempt I tried was following the same method of resetting root password on Centos through Kernel.
1- Restarting the machine to get into Kernel:
When Restarting Press E to edit the Kernel
Once pressed E you will get this screen:
2- Edit the Kernel:
Scroll down until you find “rhgb quiet” and replace it with “init=/bin/bash” without quotes.
So eventually it’ll look like this
3- Resetting Root Password:
Once it’s changed, press ctrl-X to initiate the process of resetting the root password:
You will get Bash cmd prompt, Type the following commands
A- First to check the status of root partition by running following command on the single user mode.
Mount | grep root
In this distro of Linux you might not get anything but normally you should get partition details.
B- To make the partition writable, you’ll have to type in the following command
mount -o remount,rw /
C- To Change the root password type
Type your new password and you’ll get a message that all authentication tokens updated successfully
After this restart and try to login, and you’ll see that it works fine
After restarting the machine, I tried to get into web GUI to start configuring the FreePBX but I received the following error:
Class ‘PicoFeed\Reader\Reader’ not found
After doing some research it was obviously an error related to a recent update pushed by FreePBX
and the solution was running this cmd
fwconsole ma upgrade dashboard –edge
Hope someone would find this useful