Skip to content

Commit 263291f

Browse files
authored
Merge pull request #8435 from ovh/FB-get-back-access-server
FB - Update get back access server guide
2 parents 0479c87 + 65597e2 commit 263291f

File tree

16 files changed

+677
-226
lines changed

16 files changed

+677
-226
lines changed

pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.de-de.md

Lines changed: 47 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
---
22
title: "Wiederherstellen des Serverzugriffs bei Passwortverlust"
33
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"
4-
updated: 2024-02-19
4+
updated: 2025-10-02
55
---
66

7-
> [!primary]
8-
> 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.
9-
>
10-
117
## Ziel
128

139
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.
@@ -28,7 +24,7 @@ In diesem Fall können Sie sich über den OVHcloud Rescue-Modus mit Ihrem Server
2824

2925
> [!primary]
3026
>
31-
> 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).
27+
> 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).
3228
>
3329
3430
## In der praktischen Anwendung
@@ -39,16 +35,16 @@ Lesen Sie ggf. auch unsere Anleitung zu den ersten Schritten für Ihren Dienst:
3935
- Für einen [Dedicated Server der Reihe **Eco**](/pages/bare_metal_cloud/dedicated_servers/getting-started-with-dedicated-server-eco)
4036
- Für einen [VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)
4137

42-
4338
> [!warning]
39+
>
4440
> 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.
4541
>
4642
> 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.
4743
>
4844
4945
<a name="step1"></a>
5046

51-
### Schritt 1: Server im Rescue-Modus neu starten
47+
### Schritt 1 - Server im Rescue-Modus neu starten
5248

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

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

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

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

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

7874
```bash
79-
passwd username
75+
cat /etc/passwd
8076
```
8177

82-
```text
83-
New password:
84-
Retype new password:
85-
passwd: password updated successfully
78+
Beispielausgabe (gekürzt):
79+
80+
```console
81+
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
82+
bin:x:2:2:bin:/bin:/usr/sbin/nologin
83+
sys:x:3:3:sys:/dev:/usr/sbin/nologin
84+
.
85+
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
86+
systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
87+
syslog:x:102:102::/nonexistent:/usr/sbin/nologin
88+
sshd:x:105:65534::/run/sshd:/usr/sbin/nologin
89+
.
90+
user1:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
8691
```
8792

88-
Denken Sie daran, den regulären Startmodus zu verwenden, wenn Sie Ihren Server im [OVHcloud Kundencenter](/links/manager) neu starten.
93+
Finden Sie Ihre(n) zu bearbeitenden Benutzernamen in der Liste der Accounts.
94+
95+
Geben Sie folgenden Befehl ein, um das Kennwort für einen bestimmten Account zu ändern (z. B. **user1**):
96+
97+
```bash
98+
passwd user1
99+
```
100+
101+
Geben Sie das neue Kennwort zweimal ein und bestätigen Sie:
102+
103+
```console
104+
# New password:
105+
# Retype new password:
106+
# passwd: password updated successfully
107+
```
108+
109+
Bei einer GNU/Linux-Distribution zeigt **die Eingabeaufforderung für Passwörter Ihre Tastatureingabe nicht an**.
110+
111+
> [!primary]
112+
>
113+
> 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).
114+
> Verwenden Sie deshalb `passwd <Benutzer>`.
115+
116+
Denken Sie daran, den regulären Startmodus zu aktivieren, bevor Sie Ihren Server im [OVHcloud Kundencenter](/links/manager) neu starten.
89117

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

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

94122
## Weiterführende Informationen
95123

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

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

104-
Für den Austausch mit unserer User Community gehen Sie auf <https://community.ovh.com/en/>.
132+
Für den Austausch mit unserer User Community gehen Sie auf <https://community.ovh.com/en/>.

pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-asia.md

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
title: How to recover server access if your user password is lost
33
excerpt: Find out how to configure a new password for a user account on a GNU/Linux operating system with the OVHcloud rescue mode
4-
updated: 2024-02-19
4+
updated: 2025-10-02
55
---
66

7-
87
## Objective
98

109
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.
@@ -24,6 +23,7 @@ To recover access to a server that you log in to with an SSH key, refer to our g
2423
- Access to the [OVHcloud Control Panel](/links/manager)
2524

2625
> [!primary]
26+
>
2727
> 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).
2828
>
2929
@@ -36,14 +36,15 @@ Be sure to consult our "Getting started" guides as well:
3636
- For a [VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)
3737

3838
> [!warning]
39-
>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.
4039
>
41-
>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.
40+
> 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.
41+
>
42+
> 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.
4243
>
4344
4445
<a name="step1"></a>
4546

46-
### Step 1: Restart the server into rescue mode
47+
### Step 1 - Restart the server into rescue mode
4748

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

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

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

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

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

7374
```bash
74-
passwd username
75+
cat /etc/passwd
76+
```
77+
78+
Example output (shortened):
79+
80+
```console
81+
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
82+
bin:x:2:2:bin:/bin:/usr/sbin/nologin
83+
sys:x:3:3:sys:/dev:/usr/sbin/nologin
84+
.
85+
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
86+
systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
87+
syslog:x:102:102::/nonexistent:/usr/sbin/nologin
88+
sshd:x:105:65534::/run/sshd:/usr/sbin/nologin
89+
.
90+
user1:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
7591
```
7692

77-
```text
78-
New password:
79-
Retype new password:
80-
passwd: password updated successfully
93+
Find your user name(s) in the list of accounts.
94+
To change the password for a specific account (e.g. **user1**), enter this comand:
95+
96+
```bash
97+
passwd user1
8198
```
8299

100+
Enter the new password twice and confirm:
101+
102+
```console
103+
# New password:
104+
# Retype new password:
105+
# passwd: password updated successfully
106+
```
107+
108+
On a GNU/Linux distribution, **a password prompt does not display your keyboard input**.
109+
110+
> [!primary]
111+
>
112+
> Avoid running the `passwd` command without arguments: This command modifies the password of the current account (which is **root** after executing `chroot`).
113+
> Always specify `passwd <user>`.
114+
83115
Remember to use the regular boot mode of your server when restarting it in your [OVHcloud Control Panel](/links/manager).
84116

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

87-
You have now access to the server with your new password.
88-
119+
The modified user account has now access to the server with the new password.
89120

90121
## Go further
91122

pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-au.md

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
title: How to recover server access if your user password is lost
33
excerpt: Find out how to configure a new password for a user account on a GNU/Linux operating system with the OVHcloud rescue mode
4-
updated: 2024-02-19
4+
updated: 2025-10-02
55
---
66

7-
87
## Objective
98

109
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.
@@ -24,6 +23,7 @@ To recover access to a server that you log in to with an SSH key, refer to our g
2423
- Access to the [OVHcloud Control Panel](/links/manager)
2524

2625
> [!primary]
26+
>
2727
> 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).
2828
>
2929
@@ -36,14 +36,15 @@ Be sure to consult our "Getting started" guides as well:
3636
- For a [VPS](/pages/bare_metal_cloud/virtual_private_servers/starting_with_a_vps)
3737

3838
> [!warning]
39-
>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.
4039
>
41-
>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.
40+
> 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.
41+
>
42+
> 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.
4243
>
4344
4445
<a name="step1"></a>
4546

46-
### Step 1: Restart the server into rescue mode
47+
### Step 1 - Restart the server into rescue mode
4748

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

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

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

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

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

7374
```bash
74-
passwd username
75+
cat /etc/passwd
76+
```
77+
78+
Example output (shortened):
79+
80+
```console
81+
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
82+
bin:x:2:2:bin:/bin:/usr/sbin/nologin
83+
sys:x:3:3:sys:/dev:/usr/sbin/nologin
84+
.
85+
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
86+
systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin
87+
syslog:x:102:102::/nonexistent:/usr/sbin/nologin
88+
sshd:x:105:65534::/run/sshd:/usr/sbin/nologin
89+
.
90+
user1:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash
7591
```
7692

77-
```text
78-
New password:
79-
Retype new password:
80-
passwd: password updated successfully
93+
Find your user name(s) in the list of accounts.
94+
To change the password for a specific account (e.g. **user1**), enter this comand:
95+
96+
```bash
97+
passwd user1
8198
```
8299

100+
Enter the new password twice and confirm:
101+
102+
```console
103+
# New password:
104+
# Retype new password:
105+
# passwd: password updated successfully
106+
```
107+
108+
On a GNU/Linux distribution, **a password prompt does not display your keyboard input**.
109+
110+
> [!primary]
111+
>
112+
> Avoid running the `passwd` command without arguments: This command modifies the password of the current account (which is **root** after executing `chroot`).
113+
> Always specify `passwd <user>`.
114+
83115
Remember to use the regular boot mode of your server when restarting it in your [OVHcloud Control Panel](/links/manager).
84116

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

87-
You have now access to the server with your new password.
88-
119+
The modified user account has now access to the server with the new password.
89120

90121
## Go further
91122

0 commit comments

Comments
 (0)