I came upon a new customer with freepbx on a PC. No one knows root password or freepbx login information and original installer is out of business. This is a restaurant. Must we start from scratch? I have managed to get myself back in to my own systems but I knew root password.
Is this a case of finding out the O/S and then googling it to find instructions?
It should be possible to reset a Linux root password if you have physical access to the machine. However, although, in principle, it isnāt that difficult, I donāt think it is something that should be detailed on a public forum.
Just to follow up it was not a Freepbx PC. After some investigation the PBX is a re-branded PBX appliance by Yeastar which I believe runs some sort of asterisk but we are locked out. Probably barking up the wrong tree here. Nonetheless no easy solution and customer isnāt too keen on rebuilding the whole setup.
Itās not clear what your relationship is to this customer but it seems like a clear opportunity to sell them something better, that you can support. They may not be keen on rebuilding the setup but I bet they would be happier about it if they knew a new FreePBX / PBXact system would be well cared for by johntgs and they wonāt have another emergency like this.
Yes, that is going to be our goal. Get them on a good system with good support. I donāt believe in a magic but is there a way to somehow obtain the sip credentials over the network for the existing 15 - 20 IP phones or must we manually do so and then retype them into another pbx?
I donāt believe the SIP credentials are passed āin the clearā - though if this is a very old system maybe there is a chance of that? Also, Iāve found poorly setup systems tend to use the same password for all phones so you might luck out there.
Are you unable to reboot the system off of a ālive linux cdā and then go look at the files in /etc/asterisk to get this info?
If they are provisioning using a cleartext method like tftp or http then you can probably grab what you need with wireshark.
Or do as david55 said, get the disk out of the old system and mount it on a system you control, and then you can read the configs from the asterisk config files.
A slightly less dangerous option would be to pull the disk and duplicate it, then put it back. Use the duped copy for your forensics and you should be able to pull all of the information from the ā/mntā mounted file system. The advantage there is that you can do it in a more leisurely timeframe and have (as a side benefit) a backup you can use if the drive craps while you are working on the replacement.
This also gives you the advantage of being able to test everything before you get started with the ārealā uprade.
you can then mount the output file produced somewhere convenient.|
In that image the directories etc/*var/lib/asterisk*var/spool/asterisk/* and var/lib/mysql will probably have useful breadcrumbs like asteriskās .conf files and the asteriskdb sqlite3 file (this depending on how asterisk was deployed on the original appliance)
The genesis of the problem was no ārootā and no āfreepbxā password. I think heās pretty well jammed up unless he can get access to the hardware, but once he does, there are lots of ways ahead.
Then I suggest he take his laptop and an RJ45 as well as his screwdriver (maybe a monitor and keyboard if the appliance has those holes add a usb to serial adapter if it doesnāt.)