FreePBX Reset Root Password

Updated by Tony Dimsdale


How to log in to the terminal and reset the root password of your Free PBX server.

Any information provided here regarding "Asterisk" or "FreePBX" servers refers only to Telos-commissioned FreePBX (Asterisk) servers used with Telos Alliance telephony products. While these are third-party servers and software, we are able to provide limited pointers and advice (like this article) under normal support.  If your Asterisk system was not configured by Telos, it would be best to contact the administrator of your configuration.


The command-line terminal and web-based GUI of the Asterisk system configured by Telos both have a required login. Once the user has logged into the terminal, commands can be issued to navigate to a directory and reset the root password.

Username for Terminal:

Username: root
Password: (Will be reset in using this Help Doc)

Logging into FreePBX CMD Line

Using a monitor keyboard and mouse. Connect to your server, during the boot up press any key to interrupt the boot process. You will see this screen:

Press the "e" key to enter the boot line screen. This will allow you access to the cmd line of the server. Find the linux /16 line, at the end of this script type "rd.break". Press Ctrl X to continue the boot process.

You will now be entering emergency mode

Type, "mount -o remount, rw sysroot", this changes the permissions of the directory to writeable.

Type "chroot sysroot", this will change the directory your working in.

Type "passwd", this will prompt the system to ask you for a new password.

Type in your new Password: You may receive and error for a more secure password. This is normal.

Type exit, type exit one last time. The server will reboot.

Let us know how we can help

If you have further questions on this topic or have ideas about how we can improve this document, please contact us

How did we do?