# Resetting WEB Interface Credentials

You may encounter a situation where you have forgotten the username or password for the MikoPBX web interface. This guide explains how to reset them.

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FkuDxbuz5l5I67paUnZr9%2FLoginError(MikoPBXEntryWEB).png?alt=media&#x26;token=b64f60de-2b05-4fc5-840a-23d31cd2192d" alt=""><figcaption><p>Authorization failed</p></figcaption></figure>

## Solution

1. Go to the MikoPBX console.

{% hint style="info" %}
The location of the console depends on the installation method:

* If installed on a physical server - on the monitor connected to the server.
* If installed  in a virtual machine - in the virtual machine management console.
* If installed  in the cloud - in the cloud serial console (also in the virtual machine management console).
* The reset method when installing in a Docker container is described in more detail in the current documentation.

In addition, the console can be accessed using SSH authorization. You can read more about SSH connection  [here](https://docs.mikopbx.com/mikopbx/english/faq/troubleshooting/connecting-to-a-pbx-using-ssh).

To learn more about MikoPBX, please refer to the [following documentation](https://docs.mikopbx.com/mikopbx/english/readme/getting-to-know-mikopbx).
{% endhint %}

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FW2CK3gGUsVwEtIsWvRcL%2Fmikopbxconsole.png?alt=media&#x26;token=8a5aaad9-b38e-41fb-aed7-d9248f43bdaf" alt=""><figcaption><p>MikoPBX Console</p></figcaption></figure>

2. Select the option "**\[7] Reset password for the web interface**".
3. Type **y** to confirm resetting the login and password.

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FhubG9G9HNbHnnxEeMmEs%2FpasswordReset.png?alt=media&#x26;token=d8a9254e-9a92-4726-8859-6ac6520c4864" alt=""><figcaption><p>Password reset confirmation</p></figcaption></figure>

4. Log in to the web interface using the default credentials:

{% hint style="info" %}
**Default web interface credentials:**

* **Username**: admin
* **Password**: admin
  {% endhint %}

After the first login, you will be prompted to change the credentials.

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FN73txOxu7hgzIqErCSF9%2FchangeLoginAndPassword.png?alt=media&#x26;token=a0a98f7e-aa1c-419a-866b-69a588438020" alt=""><figcaption><p>Changing your login information</p></figcaption></figure>

## Resetting the Password in a Docker Container

1. Access the **container shell**:

```bash
docker exec -it mikopbxContainerNameOrID sh
```

{% hint style="success" %}
Replace *mikopbxContainerNameOrID* with the name or ID of your container.
{% endhint %}

2. Launch the menu using this command:

```bash
/etc/rc/console_menu
```

3. Navigate to **"\[7] Reset password for the web interface"**.
4. Enter **"y"** to confirm resetting the username and password.
5. Log in to the web interface using the default credentials:

{% hint style="info" %}
**Default web interface credentials**:

* **Username**: admin
* **Password**: admin
  {% endhint %}

Change the login credentials after the first authorization:

<figure><img src="https://835495363-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZ8acWnNlSalIHQjMFu1%2Fuploads%2FN73txOxu7hgzIqErCSF9%2FchangeLoginAndPassword.png?alt=media&#x26;token=a0a98f7e-aa1c-419a-866b-69a588438020" alt=""><figcaption><p>Changing your login information</p></figcaption></figure>
