# Change user password

***

{% tabs %}
{% tab title="Logged in as Root" %}
If you're already logged in as the root user or can switch to it, follow these steps:

**Steps:**

1. Open a terminal.
2. Run the following command:

   ```bash
   passwd
   ```
3. You will be prompted to enter a new password. Enter it, then confirm by typing it again.
4. After confirming, the root password will be changed.
   {% endtab %}

{% tab title="Using a Sudo-enabled Account" %}
If you’re logged in as a non-root user but have sudo privileges, you can still change the root password:

**Steps:**

1. Open a terminal.
2. Run the following command:

   ```bash
   sudo passwd root
   ```
3. You will be asked for your user's password to authenticate the `sudo` command.
4. Then, you will be prompted to enter the new root password and confirm it.
5. Once done, the root password will be changed.
   {% endtab %}
   {% endtabs %}


---

# 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.vibeshost.com/gtq/quickstart/change-user-password.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.
