When you lost your 3cx webinterface password and in some cases even the username this is what you could do.
To be able to get this information you need to have root access to you 3CX installation VM or RaspberryPi.
Login as root or change your use to root
su -
Enter your root password
Then change to the postgres user by typing:
su - postgres
Then:
[email protected]:~$ psql -d database_single -c "SELECT * FROM parameter WHERE name = 'WEBSERVERPASS'"
It will show your password in the table
If you lost your username type the following:
[email protected]:~$ psql -d database_single -c "SELECT * FROM parameter WHERE name = 'WEBSERVERUSER'"
Your username will be shown in the table
Have fun