# How to change passwords

### Default Usernames and Passwords

<table><thead><tr><th width="150" align="right">System</th><th width="150">Username</th><th>Default Password</th></tr></thead><tbody><tr><td align="right">Linux</td><td><code>nidb</code></td><td><code>password</code></td></tr><tr><td align="right">MariaDB</td><td><code>root</code></td><td><code>password</code></td></tr><tr><td align="right">MariaDB</td><td><code>nidb</code></td><td><code>password</code></td></tr><tr><td align="right">NiDB</td><td><code>admin</code></td><td><code>password</code></td></tr></tbody></table>

### How to change Linux password

As the **root** user, run

`passwd nidb`

-or- as the **nidb** user, run

`passwd`

### How to change MariaDB passwords

Login to <http://localhost/phpMyAdmin> using the root MySQL account and password. Go to the **User Accounts** menu option. Then click **Edit privileges** for the `root` (or `nidb`) account that has a `‘%’` as the hostname. Then click **Change password** button at the top of the page. Enter a new password and click **Go**

{% hint style="info" %}
Changed MariaDB passwords must also be updated in the config file. Use one of the following methods to edit the password

* Edit `/nidb/nidb.cfg` to reflect the new password
* Go to **Admin** --> **Settings** in the NiDB website to edit the config variables
  {% endhint %}

### How to change NiDB `admin` password

When logged in to NiDB as `admin`, go to **My Account**. Enter a new password in the password field(s). Click **Save** to change the password.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.neuroinfodb.org/nidb/getting-started/installation/how-to-change-passwords.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
