Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
---
title: "Wiederherstellen des Serverzugriffs bei Passwortverlust"
excerpt: "Erfahren Sie hier, wie Sie mit dem OVHcloud Rescue-Modus ein neues Passwort für einen Benutzer-Account auf einem GNU/Linux-Betriebssystem einrichten"
updated: 2024-02-19
updated: 2025-10-02
---

> [!primary]
> Diese Übersetzung wurde durch unseren Partner SYSTRAN automatisch erstellt. In manchen Fällen können ungenaue Formulierungen verwendet worden sein, z.B. bei der Beschriftung von Schaltflächen oder technischen Details. Bitte ziehen Sie im Zweifelsfall die englische oder französische Fassung der Anleitung zu Rate. Möchten Sie mithelfen, diese Übersetzung zu verbessern? Dann nutzen Sie dazu bitte den Button "Beitragen" auf dieser Seite.
>

## Ziel

Ohne eine alternative Authentifizierungsmethode oder einen anderen Benutzer-Account bedeutet der Verlust Ihres Passworts, dass Sie sich nicht mehr auf regulärem Weg bei Ihrem Server einloggen können.
Expand All @@ -28,7 +24,7 @@ In diesem Fall können Sie sich über den OVHcloud Rescue-Modus mit Ihrem Server

> [!primary]
>
> Diese Anleitung gilt nicht für Installationen von **Windows** Server. Folgen Sie stattdessen unserer Anleitung zum [Ändern des Administratorpassworts auf einem Windows Dedicated Server](/pages/bare_metal_cloud/dedicated_servers/rcw-changing-admin-password-on-windows) oder [Ändern des Administratorpassworts auf einem Windows VPS](/pages/bare_metal_cloud/virtual_private_servers/resetting_a_windows_password).
> Diese Anleitung gilt nicht für Installationen von **Windows** Server. Folgen Sie stattdessen unserer Anleitung zum [Ändern des Administrator-Passworts auf einem Windows Dedicated Server](/pages/bare_metal_cloud/dedicated_servers/rcw-changing-admin-password-on-windows) oder [Ändern des Administrator-Passworts auf einem Windows VPS](/pages/bare_metal_cloud/virtual_private_servers/resetting_a_windows_password).
>

## In der praktischen Anwendung
Expand All @@ -39,16 +35,16 @@ Lesen Sie ggf. auch unsere Anleitung zu den ersten Schritten für Ihren Dienst:
- Für einen [Dedicated Server der Reihe **Eco**](/pages/bare_metal_cloud/dedicated_servers/getting-started-with-dedicated-server-eco)
- Für einen [VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)


> [!warning]
>
> OVHcloud stellt Ihnen Dienstleistungen zur Verfügung, für deren Konfiguration und Verwaltung Sie die alleinige Verantwortung tragen. Es liegt somit bei Ihnen, sicherzustellen, dass diese ordnungsgemäß funktionieren.
>
> Wir stellen Ihnen diese Anleitung zur Verfügung, um Ihnen bei der Bewältigung alltäglicher Verwaltungsaufgaben zu helfen. Dennoch empfehlen wir Ihnen, einen [spezialisierten Dienstleister](/links/partner) zu kontaktieren oder Ihre Fragen an die [OVHcloud Community](https://community.ovh.com/en/) zu richten, wenn Sie Schwierigkeiten oder Zweifel hinsichtlich der Verwaltung, Nutzung oder Implementierung der Dienste auf einem Server haben.
>

<a name="step1"></a>

### Schritt 1: Server im Rescue-Modus neu starten
### Schritt 1 - Server im Rescue-Modus neu starten

Folgen Sie den Schritten unserer Anleitungen zum Rescue-Modus, um sich mit Ihrem Server zu verbinden und Ihre Partitionen zu mounten:

Expand All @@ -69,27 +65,59 @@ Der exakte Befehl hängt vom verwendeten Mountpunkt ab. Wenn Sie Ihre Partition
chroot /mnt/
```

### Schritt 2: Benutzer-Passwort zurücksetzen
### Schritt 2 - Identifizieren der Benutzer-Accounts und Zurücksetzen des Passworts

Hinweis: Bei einer GNU/Linux-Distribution **zeigt eine Passworteingabeaufforderung keine Tastatureingaben an**.
Nachdem Sie die Partition gemountet und `chroot /mnt` (oder den entsprechenden Befehl) ausgeführt haben, verfügen Sie über **root**-Berechtigungen auf dem System.

Ändern Sie das Passwort des Benutzers mit folgendem Befehl (ersetzen Sie `username` durch den Namen des Benutzer-Accounts):
Ermitteln Sie ggf. alle relevanten Benutzer-Accounts mithilfe des folgenden Befehls:

```bash
passwd username
cat /etc/passwd
```

```text
New password:
Retype new password:
passwd: password updated successfully
Beispielausgabe (gekürzt):

```console
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
.
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
syslog:x:102:102::/nonexistent:/usr/sbin/nologin
sshd:x:105:65534::/run/sshd:/usr/sbin/nologin
.
user1:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
```

Denken Sie daran, den regulären Startmodus zu verwenden, wenn Sie Ihren Server im [OVHcloud Kundencenter](/links/manager) neu starten.
Finden Sie Ihre(n) zu bearbeitenden Benutzernamen in der Liste der Accounts.

Geben Sie folgenden Befehl ein, um das Kennwort für einen bestimmten Account zu ändern (z. B. **user1**):

```bash
passwd user1
```

Geben Sie das neue Kennwort zweimal ein und bestätigen Sie:

```console
# New password:
# Retype new password:
# passwd: password updated successfully
```

Bei einer GNU/Linux-Distribution zeigt **die Eingabeaufforderung für Passwörter Ihre Tastatureingabe nicht an**.

> [!primary]
>
> Vermeiden Sie es, den Befehl `passwd` ohne Argumente auszuführen: Dieser Befehl ändert das Passwort des aktuellen Kontos (**root** nach der Ausführung von `chroot` ist).
> Verwenden Sie deshalb `passwd <Benutzer>`.

Denken Sie daran, den regulären Startmodus zu aktivieren, bevor Sie Ihren Server im [OVHcloud Kundencenter](/links/manager) neu starten.

Folgen Sie bei Bedarf der passenden [Anleitung zum Rescue-Modus](#step1).

Sie haben nun mit Ihrem neuen Passwort Zugriff auf den Server.
Der bearbeitete Benutzer-Account hat nun Zugriff auf den Server mit dem neuen Passwort.

## Weiterführende Informationen

Expand All @@ -101,4 +129,4 @@ Sie haben nun mit Ihrem neuen Passwort Zugriff auf den Server.

[Konfigurieren von Benutzer-Accounts und Root-Zugriff auf einem Server](/pages/bare_metal_cloud/dedicated_servers/changing_root_password_linux_ds)

Für den Austausch mit unserer User Community gehen Sie auf <https://community.ovh.com/en/>.
Für den Austausch mit unserer User Community gehen Sie auf <https://community.ovh.com/en/>.
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: How to recover server access if your user password is lost
excerpt: Find out how to configure a new password for a user account on a GNU/Linux operating system with the OVHcloud rescue mode
updated: 2024-02-19
updated: 2025-10-02
---


## Objective

Without a different mode of authentication or another user account, losing your password means you can no longer log in to your server in a regular way.
Expand All @@ -24,6 +23,7 @@ To recover access to a server that you log in to with an SSH key, refer to our g
- Access to the [OVHcloud Control Panel](/links/manager)

> [!primary]
>
> This guide is not applicable for **Windows** server installations. Please refer to our guides on [How to change the admin password on a Windows dedicated server](/pages/bare_metal_cloud/dedicated_servers/rcw-changing-admin-password-on-windows) and [How to change the admin password on a Windows VPS](/pages/bare_metal_cloud/virtual_private_servers/resetting_a_windows_password).
>

Expand All @@ -36,14 +36,15 @@ Be sure to consult our "Getting started" guides as well:
- For a [VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)

> [!warning]
>OVHcloud is providing you with services for which you are responsible, with regard to their configuration and management. It is therefore your responsibility to ensure that they function correctly.
>
>This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend that you contact a [specialist service provider](/links/partner) or reach out to [our community](https://community.ovh.com/en/) if you face difficulties or doubts concerning the administration, usage or implementation of services on a server.
> OVHcloud is providing you with services for which you are responsible, with regard to their configuration and management. It is therefore your responsibility to ensure that they function correctly.
>
> This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend that you contact a [specialist service provider](/links/partner) or reach out to [our community](https://community.ovh.com/en/) if you face difficulties or doubts concerning the administration, usage or implementation of services on a server.
>

<a name="step1"></a>

### Step 1: Restart the server into rescue mode
### Step 1 - Restart the server into rescue mode

Use the corresponding rescue mode guide to connect to your server and mount your partitions:

Expand All @@ -64,28 +65,58 @@ The exact command depends on the mountpoint you used. For example, if you have m
chroot /mnt/
```

### Step 2: Reset the user password
### Step 2 - Identify the user account(s) and reset the password

Note: On a GNU/Linux distribution, **a password prompt will not display your keyboard inputs**.
After mounting the partition and running `chroot /mnt` (or the equivalent), you have **root** privileges on the mounted system.

Change the user password with the following command (replace `username` with the actual name of the user account):
If needed, before changing a password, **identify existing accounts** using the following command:

```bash
passwd username
cat /etc/passwd
```

Example output (shortened):

```console
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
.
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
syslog:x:102:102::/nonexistent:/usr/sbin/nologin
sshd:x:105:65534::/run/sshd:/usr/sbin/nologin
.
user1:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
```

```text
New password:
Retype new password:
passwd: password updated successfully
Find your user name(s) in the list of accounts.
To change the password for a specific account (e.g. **user1**), enter this comand:

```bash
passwd user1
```

Enter the new password twice and confirm:

```console
# New password:
# Retype new password:
# passwd: password updated successfully
```

On a GNU/Linux distribution, **a password prompt does not display your keyboard input**.

> [!primary]
>
> Avoid running the `passwd` command without arguments: This command modifies the password of the current account (which is **root** after executing `chroot`).
> Always specify `passwd <user>`.

Remember to use the regular boot mode of your server when restarting it in your [OVHcloud Control Panel](/links/manager).

Refer to the corresponding [rescue mode guide](#step1) if necessary.

You have now access to the server with your new password.

The modified user account has now access to the server with the new password.

## Go further

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
title: How to recover server access if your user password is lost
excerpt: Find out how to configure a new password for a user account on a GNU/Linux operating system with the OVHcloud rescue mode
updated: 2024-02-19
updated: 2025-10-02
---


## Objective

Without a different mode of authentication or another user account, losing your password means you can no longer log in to your server in a regular way.
Expand All @@ -24,6 +23,7 @@ To recover access to a server that you log in to with an SSH key, refer to our g
- Access to the [OVHcloud Control Panel](/links/manager)

> [!primary]
>
> This guide is not applicable for **Windows** server installations. Please refer to our guides on [How to change the admin password on a Windows dedicated server](/pages/bare_metal_cloud/dedicated_servers/rcw-changing-admin-password-on-windows) and [How to change the admin password on a Windows VPS](/pages/bare_metal_cloud/virtual_private_servers/resetting_a_windows_password).
>

Expand All @@ -36,14 +36,15 @@ Be sure to consult our "Getting started" guides as well:
- For a [VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)

> [!warning]
>OVHcloud is providing you with services for which you are responsible, with regard to their configuration and management. It is therefore your responsibility to ensure that they function correctly.
>
>This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend that you contact a [specialist service provider](/links/partner) or reach out to [our community](https://community.ovh.com/en/) if you face difficulties or doubts concerning the administration, usage or implementation of services on a server.
> OVHcloud is providing you with services for which you are responsible, with regard to their configuration and management. It is therefore your responsibility to ensure that they function correctly.
>
> This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend that you contact a [specialist service provider](/links/partner) or reach out to [our community](https://community.ovh.com/en/) if you face difficulties or doubts concerning the administration, usage or implementation of services on a server.
>

<a name="step1"></a>

### Step 1: Restart the server into rescue mode
### Step 1 - Restart the server into rescue mode

Use the corresponding rescue mode guide to connect to your server and mount your partitions:

Expand All @@ -64,28 +65,58 @@ The exact command depends on the mountpoint you used. For example, if you have m
chroot /mnt/
```

### Step 2: Reset the user password
### Step 2 - Identify the user account(s) and reset the password

Note: On a GNU/Linux distribution, **a password prompt will not display your keyboard inputs**.
After mounting the partition and running `chroot /mnt` (or the equivalent), you have **root** privileges on the mounted system.

Change the user password with the following command (replace `username` with the actual name of the user account):
If needed, before changing a password, **identify existing accounts** using the following command:

```bash
passwd username
cat /etc/passwd
```

Example output (shortened):

```console
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
.
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
syslog:x:102:102::/nonexistent:/usr/sbin/nologin
sshd:x:105:65534::/run/sshd:/usr/sbin/nologin
.
user1:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
```

```text
New password:
Retype new password:
passwd: password updated successfully
Find your user name(s) in the list of accounts.
To change the password for a specific account (e.g. **user1**), enter this comand:

```bash
passwd user1
```

Enter the new password twice and confirm:

```console
# New password:
# Retype new password:
# passwd: password updated successfully
```

On a GNU/Linux distribution, **a password prompt does not display your keyboard input**.

> [!primary]
>
> Avoid running the `passwd` command without arguments: This command modifies the password of the current account (which is **root** after executing `chroot`).
> Always specify `passwd <user>`.

Remember to use the regular boot mode of your server when restarting it in your [OVHcloud Control Panel](/links/manager).

Refer to the corresponding [rescue mode guide](#step1) if necessary.

You have now access to the server with your new password.

The modified user account has now access to the server with the new password.

## Go further

Expand Down
Loading