> For the complete documentation index, see [llms.txt](https://spacecore.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spacecore.gitbook.io/wiki/ua/os-and-software/linux-password-recovery.md).

# Відновлення пароля в Linux

Увійдіть до [VMmanager](https://spacecore.cloud/) та виберіть свій віртуальний сервер.

<figure><img src="/files/ibQQ3PoWpJxsCUXFKDf6" alt=""><figcaption></figcaption></figure>

Перейдіть до розділу «Меню» та виберіть «Режим відновлення».

<figure><img src="/files/tvoa9JjYhErl2VgKv5Zb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/DPI0j06wd3VOExwPX2Oz" alt=""><figcaption></figcaption></figure>

Погодьтеся на підключення образу SystemRescueCD та перезавантажте сервер.

<figure><img src="/files/KWnenIdZoWnh5GHsopR7" alt=""><figcaption></figcaption></figure>

Після використання кнопки почався процес завантаження сервера в режимі відновлення.

<figure><img src="/files/g9M30mo3ryMJbdTfVQDz" alt=""><figcaption></figcaption></figure>

Чудово, сервер готовий.

<figure><img src="/files/Z7QDtJVcyMqijdWNxLas" alt=""><figcaption></figcaption></figure>

Підключіться до сервера через VNC (SSH та sFTP недоступні).

<figure><img src="/files/PfiRBZV2gY9PBheFSKHV" alt=""><figcaption></figcaption></figure>

Використовуйте команду «lsblk» для перегляду всіх існуючих дисків сервера.

<figure><img src="/files/YPW2lhi4U9fJyifPmWVh" alt=""><figcaption></figcaption></figure>

Нам потрібно змонтувати основний розділ диска vda2, використовуємо команду:

```
mount /dev/vda2 /mnt
```

<figure><img src="/files/prPEnZs1Xrgf8TkOfISB" alt=""><figcaption></figcaption></figure>

Готово! Далі, вкажемо новий кореневий каталог для подальшої роботи.

<figure><img src="/files/dAGpZjJA9qDTi8CuSOZi" alt=""><figcaption></figcaption></figure>

Після виконання можна використати останню команду для зміни пароля root.

<figure><img src="/files/CUZ28EcFvZbDVCjzO0ev" alt=""><figcaption></figcaption></figure>

Введіть новий пароль та повторіть його. Ви побачите повідомлення про те, що пароль користувача було успішно змінено.

<figure><img src="/files/830h2NphHtwhVfknPJNg" alt=""><figcaption></figcaption></figure>

Вийдіть з режиму відновлення та підключіться з новим паролем.

<figure><img src="/files/B5klkXislVvjw9jfxrq3" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/kpino6z1cbaa4VXsieMI" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://spacecore.gitbook.io/wiki/ua/os-and-software/linux-password-recovery.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
