> For the complete documentation index, see [llms.txt](https://docs.neuroinfodb.org/nidb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neuroinfodb.org/nidb/getting-started/installation/how-to-change-passwords.md).

# 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.
