diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.de-de.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.de-de.md index c6470670ef1..5cae471b956 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.de-de.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.de-de.md @@ -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. @@ -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 @@ -39,8 +35,8 @@ 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. @@ -48,7 +44,7 @@ Lesen Sie ggf. auch unsere Anleitung zu den ersten Schritten für Ihren Dienst: -### 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: @@ -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 `. + +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 @@ -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 . \ No newline at end of file +Für den Austausch mit unserer User Community gehen Sie auf . diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-asia.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-asia.md index e2a756b89ca..11faab6bae7 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-asia.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-asia.md @@ -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. @@ -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). > @@ -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. > -### 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: @@ -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 `. + 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 diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-au.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-au.md index e2a756b89ca..11faab6bae7 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-au.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-au.md @@ -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. @@ -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). > @@ -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. > -### 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: @@ -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 `. + 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 diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-ca.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-ca.md index e2a756b89ca..11faab6bae7 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-ca.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-ca.md @@ -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. @@ -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). > @@ -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. > -### 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: @@ -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 `. + 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 diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-gb.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-gb.md index e2a756b89ca..11faab6bae7 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-gb.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-gb.md @@ -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. @@ -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). > @@ -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. > -### 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: @@ -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 `. + 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 diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-ie.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-ie.md index e2a756b89ca..11faab6bae7 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-ie.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-ie.md @@ -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. @@ -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). > @@ -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. > -### 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: @@ -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 `. + 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 diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-sg.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-sg.md index e2a756b89ca..11faab6bae7 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-sg.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-sg.md @@ -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. @@ -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). > @@ -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. > -### 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: @@ -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 `. + 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 diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-us.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-us.md index e2a756b89ca..11faab6bae7 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-us.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.en-us.md @@ -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. @@ -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). > @@ -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. > -### 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: @@ -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 `. + 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 diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.es-es.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.es-es.md index 05f2ad69e81..fc8b0e72470 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.es-es.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.es-es.md @@ -1,13 +1,9 @@ --- title: "Cómo recuperar el acceso al servidor en caso de pérdida de la contraseña del usuario" excerpt: "Cómo configurar una nueva contraseña para una cuenta de usuario en un sistema operativo GNU/Linux con el modo de rescate de OVHcloud" -updated: 2024-02-19 +updated: 2025-10-02 --- -> [!primary] -> Esta traducción ha sido generada de forma automática por nuestro partner SYSTRAN. En algunos casos puede contener términos imprecisos, como en las etiquetas de los botones o los detalles técnicos. En caso de duda, le recomendamos que consulte la versión inglesa o francesa de la guía. Si quiere ayudarnos a mejorar esta traducción, por favor, utilice el botón «Contribuir» de esta página. -> - ## Objetivo Sin otro modo de autenticación u otra cuenta de usuario, la pérdida de su contraseña significa que no podrá conectarse a su servidor de forma normal. @@ -47,7 +43,7 @@ No olvide consultar también nuestras guías de primeros pasos: -### Paso 1: reiniciar el servidor en modo de rescate +### Paso 1 - Reiniciar el servidor en modo de rescate Siga los pasos de nuestras guías sobre el modo de rescate para conectarse a su servidor y montar sus particiones: @@ -69,27 +65,59 @@ El comando exacto depende del punto de montaje utilizado. Por ejemplo, si ha mon chroot /mnt/ ``` -### Paso 2: restablecer la contraseña del usuario +### Paso 2 - Identificar la(s) cuenta(s) de usuario y restablecer la contraseña + +Después de montar la partición y ejecutar `chroot /mnt` (o el equivalente), dispone de privilegios **root** en el sistema montado. + +Si es necesario, antes de modificar una contraseña, **identifique las cuentas existentes** con el siguiente comando: + +```bash +cat /etc/passwd +``` + +Ejemplo de resultado (abreviado): + +```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 +``` -Nota: en una distribución GNU/Linux, **una petición de contraseña no muestra las entradas de teclado**. +Encuentre el nombre del usuario en la lista de cuentas. -Cambie la contraseña del usuario con el siguiente comando (sustituya `username` por el nombre real de la cuenta de usuario): +Para cambiar la contraseña de una cuenta específica (por ejemplo, **user1**), utilice este comando: ```bash -passwd username +passwd user1 ``` -```text -New password: -Retype new password: -passwd: password updated successfully +Introduzca la nueva contraseña dos veces: + +```console +# New password: +# Retype new password: +# passwd: password updated successfully ``` +En una distribución GNU/Linux, **una petición de contraseña no muestra las entradas de teclado**. + +> [!primary] +> +> Evite ejecutar el comando `passwd` sin argumentos: este comando modifica la contraseña de la cuenta actual (que suele ser **root** después de ejecutar `chroot`). +> Indiquez systématiquement `passwd `. + Recuerde utilizar el modo de arranque **normal** del servidor al reiniciarlo desde el [área de cliente de OVHcloud](/links/manager). Consulte la [guía del modo de rescate](#step1) si es necesario. -Ya puede acceder al servidor con su nueva contraseña. +La cuenta de usuario modificada ahora tiene acceso al servidor con la nueva contraseña. ## Más información @@ -101,4 +129,4 @@ Ya puede acceder al servidor con su nueva contraseña. [Configuración de las cuentas de usuario y del acceso root en un servidor](/pages/bare_metal_cloud/dedicated_servers/changing_root_password_linux_ds) -Interactúe con nuestra comunidad de usuarios en . +Interactúe con nuestra comunidad de usuarios en . \ No newline at end of file diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.es-us.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.es-us.md index 20976dd2a5e..4a93f768d0e 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.es-us.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.es-us.md @@ -1,13 +1,9 @@ --- title: "Cómo recuperar el acceso al servidor en caso de pérdida de la contraseña del usuario" excerpt: "Cómo configurar una nueva contraseña para una cuenta de usuario en un sistema operativo GNU/Linux con el modo de rescate de OVHcloud" -updated: 2024-02-19 +updated: 2025-10-02 --- -> [!primary] -> Esta traducción ha sido generada de forma automática por nuestro partner SYSTRAN. En algunos casos puede contener términos imprecisos, como en las etiquetas de los botones o los detalles técnicos. En caso de duda, le recomendamos que consulte la versión inglesa o francesa de la guía. Si quiere ayudarnos a mejorar esta traducción, por favor, utilice el botón «Contribuir» de esta página. -> - ## Objetivo Sin otro modo de autenticación u otra cuenta de usuario, la pérdida de su contraseña significa que no podrá conectarse a su servidor de forma normal. @@ -47,7 +43,7 @@ No olvide consultar también nuestras guías de primeros pasos: -### Paso 1: reiniciar el servidor en modo de rescate +### Paso 1 - Reiniciar el servidor en modo de rescate Siga los pasos de nuestras guías sobre el modo de rescate para conectarse a su servidor y montar sus particiones: @@ -69,27 +65,59 @@ El comando exacto depende del punto de montaje utilizado. Por ejemplo, si ha mon chroot /mnt/ ``` -### Paso 2: restablecer la contraseña del usuario +### Paso 2 - Identificar la(s) cuenta(s) de usuario y restablecer la contraseña + +Después de montar la partición y ejecutar `chroot /mnt` (o el equivalente), dispone de privilegios **root** en el sistema montado. + +Si es necesario, antes de modificar una contraseña, **identifique las cuentas existentes** con el siguiente comando: + +```bash +cat /etc/passwd +``` + +Ejemplo de resultado (abreviado): + +```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 +``` -Nota: en una distribución GNU/Linux, **una petición de contraseña no muestra las entradas de teclado**. +Encuentre el nombre del usuario en la lista de cuentas. -Cambie la contraseña del usuario con el siguiente comando (sustituya `username` por el nombre real de la cuenta de usuario): +Para cambiar la contraseña de una cuenta específica (por ejemplo, **user1**), utilice este comando: ```bash -passwd username +passwd user1 ``` -```text -New password: -Retype new password: -passwd: password updated successfully +Introduzca la nueva contraseña dos veces: + +```console +# New password: +# Retype new password: +# passwd: password updated successfully ``` +En una distribución GNU/Linux, **una petición de contraseña no muestra las entradas de teclado**. + +> [!primary] +> +> Evite ejecutar el comando `passwd` sin argumentos: este comando modifica la contraseña de la cuenta actual (que suele ser **root** después de ejecutar `chroot`). +> Indiquez systématiquement `passwd `. + Recuerde utilizar el modo de arranque **normal** del servidor al reiniciarlo desde el [área de cliente de OVHcloud](/links/manager). Consulte la [guía del modo de rescate](#step1) si es necesario. -Ya puede acceder al servidor con su nueva contraseña. +La cuenta de usuario modificada ahora tiene acceso al servidor con la nueva contraseña. ## Más información diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.fr-ca.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.fr-ca.md index 3250b97ed82..3936c875b11 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.fr-ca.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.fr-ca.md @@ -1,7 +1,7 @@ --- title: "Comment récupérer l'accès au serveur en cas de perte du mot de passe de l'utilisateur" excerpt: "Découvrez comment configurer un nouveau mot de passe pour un compte utilisateur sur un système d'exploitation GNU/Linux avec le mode rescue OVHcloud" -updated: 2024-02-19 +updated: 2025-10-02 --- ## Objectif @@ -23,6 +23,7 @@ Dans ce cas, vous pouvez vous connecter à votre serveur via le mode rescue d’ - Être connecté à votre [espace client OVHcloud](/links/manager) > [!primary] +> > Ce guide ne s'applique pas aux installations de **Windows** Server. Consultez nos guides « [Comment changer le mot de passe administrateur sur un serveur dédié Windows](/pages/bare_metal_cloud/dedicated_servers/rcw-changing-admin-password-on-windows) » et « [Comment changer le mot de passe administrateur sur un VPS Windows](/pages/bare_metal_cloud/virtual_private_servers/resetting_a_windows_password) ». > @@ -43,7 +44,7 @@ N'oubliez pas de consulter également nos guides de premiers pas : -### Étape 1 : redémarrer le serveur en mode rescue +### Étape 1 - Redémarrer le serveur en mode rescue Suivez les étapes de nos guides sur le mode rescue pour vous connecter à votre serveur et monter vos partitions : @@ -64,27 +65,59 @@ La commande exacte dépend du point de montage utilisé. Par exemple, si vous av chroot /mnt/ ``` -### Étape 2 : réinitialiser le mot de passe de l'utilisateur +### Étape 2 - Identifier le(s) compte(s) utilisateur et réinitialiser le mot de passe -Remarque : sur une distribution GNU/Linux, **une invite de mot de passe n'affiche pas vos entrées clavier**. +Après avoir monté la partition et exécuté `chroot /mnt` (ou l'équivalent), vous disposez des privilèges **root** sur le système monté. -Changez le mot de passe de l'utilisateur avec la commande suivante (remplacez `username` par le nom réel du compte utilisateur) : +Si besoin, avant de modifier un mot de passe, **identifiez les comptes existants** avec la commande suivante : ```bash -passwd username +cat /etc/passwd ``` -```text -New password: -Retype new password: -passwd: password updated successfully +Exemple de résultat (raccourci) : + +```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 ``` +Retrouvez le nom de l'utilisateur dans la liste des comptes. + +Pour changer le mot de passe d’un compte précis (par exemple : **user1**), utilisez cette commande : + +```bash +passwd user1 +``` + +Renseignez deux fois le nouveau mot de passe : + +```console +# New password: +# Retype new password: +# passwd: password updated successfully +``` + +Sur une distribution GNU/Linux, **une invite de mot de passe n'affiche pas vos entrées clavier**. + +> [!primary] +> +> Évitez d'exécuter la commande `passwd` sans argument : cette commande modifie le mot de passe du compte courant (qui est souvent **root** après l'exécution d'un `chroot`). +> Indiquez systématiquement `passwd `. + Pensez à utiliser le mode de démarrage **normal** de votre serveur lorsque vous le redémarrez depuis votre [espace client OVHcloud](/links/manager). Consultez le [guide du mode rescue](#step1) si nécessaire. -Vous avez maintenant accès au serveur avec votre nouveau mot de passe. +Le compte utilisateur modifié a désormais accès au serveur avec le nouveau mot de passe. ## Aller plus loin diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.fr-fr.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.fr-fr.md index 3250b97ed82..3936c875b11 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.fr-fr.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.fr-fr.md @@ -1,7 +1,7 @@ --- title: "Comment récupérer l'accès au serveur en cas de perte du mot de passe de l'utilisateur" excerpt: "Découvrez comment configurer un nouveau mot de passe pour un compte utilisateur sur un système d'exploitation GNU/Linux avec le mode rescue OVHcloud" -updated: 2024-02-19 +updated: 2025-10-02 --- ## Objectif @@ -23,6 +23,7 @@ Dans ce cas, vous pouvez vous connecter à votre serveur via le mode rescue d’ - Être connecté à votre [espace client OVHcloud](/links/manager) > [!primary] +> > Ce guide ne s'applique pas aux installations de **Windows** Server. Consultez nos guides « [Comment changer le mot de passe administrateur sur un serveur dédié Windows](/pages/bare_metal_cloud/dedicated_servers/rcw-changing-admin-password-on-windows) » et « [Comment changer le mot de passe administrateur sur un VPS Windows](/pages/bare_metal_cloud/virtual_private_servers/resetting_a_windows_password) ». > @@ -43,7 +44,7 @@ N'oubliez pas de consulter également nos guides de premiers pas : -### Étape 1 : redémarrer le serveur en mode rescue +### Étape 1 - Redémarrer le serveur en mode rescue Suivez les étapes de nos guides sur le mode rescue pour vous connecter à votre serveur et monter vos partitions : @@ -64,27 +65,59 @@ La commande exacte dépend du point de montage utilisé. Par exemple, si vous av chroot /mnt/ ``` -### Étape 2 : réinitialiser le mot de passe de l'utilisateur +### Étape 2 - Identifier le(s) compte(s) utilisateur et réinitialiser le mot de passe -Remarque : sur une distribution GNU/Linux, **une invite de mot de passe n'affiche pas vos entrées clavier**. +Après avoir monté la partition et exécuté `chroot /mnt` (ou l'équivalent), vous disposez des privilèges **root** sur le système monté. -Changez le mot de passe de l'utilisateur avec la commande suivante (remplacez `username` par le nom réel du compte utilisateur) : +Si besoin, avant de modifier un mot de passe, **identifiez les comptes existants** avec la commande suivante : ```bash -passwd username +cat /etc/passwd ``` -```text -New password: -Retype new password: -passwd: password updated successfully +Exemple de résultat (raccourci) : + +```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 ``` +Retrouvez le nom de l'utilisateur dans la liste des comptes. + +Pour changer le mot de passe d’un compte précis (par exemple : **user1**), utilisez cette commande : + +```bash +passwd user1 +``` + +Renseignez deux fois le nouveau mot de passe : + +```console +# New password: +# Retype new password: +# passwd: password updated successfully +``` + +Sur une distribution GNU/Linux, **une invite de mot de passe n'affiche pas vos entrées clavier**. + +> [!primary] +> +> Évitez d'exécuter la commande `passwd` sans argument : cette commande modifie le mot de passe du compte courant (qui est souvent **root** après l'exécution d'un `chroot`). +> Indiquez systématiquement `passwd `. + Pensez à utiliser le mode de démarrage **normal** de votre serveur lorsque vous le redémarrez depuis votre [espace client OVHcloud](/links/manager). Consultez le [guide du mode rescue](#step1) si nécessaire. -Vous avez maintenant accès au serveur avec votre nouveau mot de passe. +Le compte utilisateur modifié a désormais accès au serveur avec le nouveau mot de passe. ## Aller plus loin diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.it-it.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.it-it.md index dfcdcb43766..dd4d86ca8eb 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.it-it.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.it-it.md @@ -1,14 +1,9 @@ --- title: "Come recuperare l'accesso al server in caso di perdita della password dell'utente" excerpt: "Scopri come configurare una nuova password per un account utente su un sistema operativo GNU/Linux in modalità Rescue OVHcloud" -updated: 2024-02-19 +updated: 2025-10-02 --- - -> [!primary] -> Questa traduzione è stata generata automaticamente dal nostro partner SYSTRAN. I contenuti potrebbero presentare imprecisioni, ad esempio la nomenclatura dei pulsanti o alcuni dettagli tecnici. In caso di dubbi consigliamo di fare riferimento alla versione inglese o francese della guida. Per aiutarci a migliorare questa traduzione, utilizza il pulsante "Contribuisci" di questa pagina. -> - ## Obiettivo Senza un’altra modalità di autenticazione o un altro account utente, la perdita della password significa che non è più possibile connettersi al server in modo normale. @@ -28,6 +23,7 @@ In questo caso, è possibile accedere al server tramite la modalità Rescue di O - Avere accesso allo [Spazio Cliente OVHcloud](/links/manager) > [!primary] +> > Questa guida non si applica alle installazioni di **Windows** Server. Consulta le nostre guide "[Come cambiare la password amministratore su un server dedicato Windows](/pages/bare_metal_cloud/dedicated_servers/rcw-changing-admin-password-on-windows)" e "[Come cambiare la password amministratore su un VPS Windows](/pages/bare_metal_cloud/virtual_private_servers/resetting_a_windows_password)". > @@ -48,7 +44,7 @@ Non dimenticare di consultare anche le nostre guide di primo passo: -### Step 1: riavvia il server in modalità Rescue +### Step 1 - Riavvia il server in modalità Rescue Segui gli step delle nostre guide in modalità Rescue per connetterti al tuo server e montare le tue partizioni: @@ -69,28 +65,59 @@ Il comando esatto dipende dal punto di montaggio utilizzato. Ad esempio, se la p chroot /mnt/ ``` -### Step 2: reimposta la password dell'utente +### Step 2 - Identificare gli account utente e reimpostare la password + +Dopo aver montato la partizione ed eseguito `chroot /mnt` (o l’equivalente), disporrai dei privilegi **root** sul sistema montato. + +Se necessario, prima di modificare una password, **identifica gli account esistenti** utilizzando questo comando: + +```bash +cat /etc/passwd +``` + +Esempio di risultato (collegamento): + +```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 +``` -Nota: in una distribuzione GNU/Linux, **il prompt della password non visualizza le voci della tastiera**. +Il nome dell'utente è disponibile nell'elenco degli account. -Modifica la password dell’utente con questo comando (sostituisci `username` con il nome reale dell’account utente): +Per modificare la password di un account specifico (ad esempio: **user1**), utilizza questo comando: ```bash -passwd username +passwd user1 ``` -```text -New password: -Retype new password: -passwd: password updated successfully +Inserisci due volte la nuova password: + +```console +# New password: +# Retype new password: +# passwd: password updated successfully ``` +In una distribuzione GNU/Linux, **il prompt della password non visualizza le voci della tastiera**. + +> [!primary] +> +> Evita di eseguire il comando `passwd` senza argomenti: questo comando modifica la password dell'account corrente (che è spesso **root** dopo l'esecuzione di `chroot`). +> Specifica sempre `passwd `. + Utilizza la modalità di avvio **normal** del tuo server quando lo riavvii dallo [Spazio Cliente OVHcloud](/links/manager). Se necessario, consulta la [guida del Rescue mode](#step1). -A questo punto, sarà possibile accedere al server con la nuova password. - +L'account utente modificato ora ha accesso al server con la nuova password. ## Per saperne di più diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.pl-pl.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.pl-pl.md index d7b9c232933..459ec8c3fde 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.pl-pl.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.pl-pl.md @@ -1,14 +1,9 @@ --- title: "Jak odzyskać dostęp do serwera w przypadku utraty hasła użytkownika" excerpt: "Dowiedz się, jak skonfigurować nowe hasło dla konta użytkownika w systemie operacyjnym GNU/Linux w trybie rescue OVHcloud" -updated: 2024-02-19 +updated: 2025-10-02 --- - -> [!primary] -> Tłumaczenie zostało wygenerowane automatycznie przez system naszego partnera SYSTRAN. W niektórych przypadkach mogą wystąpić nieprecyzyjne sformułowania, na przykład w tłumaczeniu nazw przycisków lub szczegółów technicznych. W przypadku jakichkolwiek wątpliwości zalecamy zapoznanie się z angielską/francuską wersją przewodnika. Jeśli chcesz przyczynić się do ulepszenia tłumaczenia, kliknij przycisk "Zgłoś propozycję modyfikacji” na tej stronie. -> - ## Wprowadzenie Bez alternatywnego uwierzytelniania lub innego konta użytkownika utrata hasła oznacza, że nie można się normalnie połączyć z serwerem. @@ -28,6 +23,7 @@ W takim przypadku możesz zalogować się do Twojego serwera za pomocą trybu Re - Dostęp do [Panelu klienta OVHcloud](/links/manager) > [!primary] +> > Ten przewodnik nie dotyczy instalacji **Windows* Server. Zapoznaj się z naszymi przewodnikami "[Jak zmienić hasło administratora na serwerze dedykowanym Windows](/pages/bare_metal_cloud/dedicated_servers/rcw-changing-admin-password-on-windows)" i "[Jak zmienić hasło administratora na serwerze VPS Windows](/pages/bare_metal_cloud/virtual_private_servers/resetting_a_windows_password)". > @@ -48,7 +44,7 @@ Sprawdź również nasze przewodniki: -### Etap 1: restart serwera w trybie rescue +### Etap 1 - Restart serwera w trybie rescue Postępuj zgodnie z instrukcjami zawartymi w przewodnikach dotyczących trybu Rescue, aby połączyć się z serwerem i zamontować partycje: @@ -69,28 +65,59 @@ Dokładne sterowanie zależy od użytego punktu montowania. Na przykład, jeśli chroot /mnt/ ``` -### Etap 2: resetowanie hasła użytkownika +### Etap 2 - Identyfikacja konta użytkownika (kont użytkowników) i resetowanie hasła + +Po zamontowaniu partycji i uruchomieniu `chroot /mnt` (lub odpowiednika), masz uprawnienia **root** w zainstalowanym systemie. + +Jeśli to konieczne, przed zmianą hasła **zidentyfikuj istniejące konta** za pomocą następującego polecenia: + +```bash +cat /etc/passwd +``` + +Przykład wyniku (skrócony): + +```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 +``` -Uwaga: w dystrybucji GNU/Linux **wiersz hasła nie wyświetla wpisów klawiaturowych**. +Znajdź Twoją nazwę użytkownika (lub nazwy użytkowników) na liście kont. -Zmień hasło użytkownika za pomocą następującego polecenia (zastąp `username` rzeczywistą nazwą konta użytkownika): +Aby zmienić hasło dla wybranego konta (na przykład: **user1**), wpisz poniższe polecenie: ```bash -passwd username +passwd user1 ``` -```text -New password: -Retype new password: -passwd: password updated successfully +Dwukrotnie wpisz nowe hasło i potwierdź: + +```console +# New password: +# Retype new password: +# passwd: password updated successfully ``` +W dystrybucji GNU/Linux **monit o hasło nie wyświetla danych wejściowych z klawiatury**. + +> [!primary] +> +> Unikaj uruchamiania polecenia `passwd` bez argumentów: to polecenie zmienia hasło dla konta bieżącego (które często jest **root** po uruchomieniu `chroot`). +> Zawsze podawaj `passwd `. + Pamiętaj, aby podczas restartu serwera z poziomu [Panelu klienta OVHcloud](/links/manager) użyć trybu uruchamiania **normalnego** Twojego serwera. W razie potrzeby sprawdź przewodnik [Tryb ratunkowy](#step1). -Teraz masz dostęp do serwera za pomocą nowego hasła. - +Zmodyfikowane konto użytkownika ma teraz dostęp do serwera z nowym hasłem. ## Sprawdź również diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.pt-pt.md b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.pt-pt.md index 597e4ef4656..429e389311f 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.pt-pt.md +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/guide.pt-pt.md @@ -1,13 +1,9 @@ --- title: "Como recuperar o acesso ao servidor em caso de perda da palavra-passe do utilizador" excerpt: "Saiba como configurar uma nova palavra-passe para uma conta de utilizador num sistema operativo GNU/Linux com o modo rescue OVHcloud" -updated: 2024-02-19 +updated: 2025-10-02 --- -> [!primary] -> Esta tradução foi automaticamente gerada pelo nosso parceiro SYSTRAN. Em certos casos, poderão ocorrer formulações imprecisas, como por exemplo nomes de botões ou detalhes técnicos. Recomendamos que consulte a versão inglesa ou francesa do manual, caso tenha alguma dúvida. Se nos quiser ajudar a melhorar esta tradução, clique em "Contribuir" nesta página. -> - ## Objetivo Sem um outro modo de autenticação ou uma conta de utilizador, a perda da palavra-passe significa que não é possível iniciar sessão no servidor normalmente. @@ -27,6 +23,7 @@ Neste caso, pode ligar-se ao seu servidor através do modo rescue da OVHcloud, q - Ter acesso à [Área de Cliente OVHcloud](/links/manager) > [!primary] +> > Este manual não se aplica a instalações do **Windows** Server. Consulte os nossos manuais "[Como alterar a palavra-passe de administrador num servidor dedicado Windows](/pages/bare_metal_cloud/dedicated_servers/rcw-changing-admin-password-on-windows)" e "[Como alterar a palavra-passe de administrador num VPS Windows](/pages/bare_metal_cloud/virtual_private_servers/resetting_a_windows_password)". > @@ -47,7 +44,7 @@ Não se esqueça de consultar também os nossos guias de primeiros passos: -### Etapa 1: reiniciar o servidor em modo rescue +### Etapa 1 - Reiniciar o servidor em modo rescue Siga as etapas dos nossos manuais sobre o modo rescue para se ligar ao seu servidor e montar as suas partições: @@ -68,27 +65,59 @@ O comando exato depende do ponto de montagem utilizado. Por exemplo, se tiver mo chroot /mnt/ ``` -### Etapa 2: reinicializar a palavra-passe do utilizador +### Etapa 2 - Identificar a(s) conta(s) de usuário e redefinir a senha + +Depois de montar a partição e executar `chroot /mnt` (ou equivalente), dispõe dos privilégios **root** no sistema montado. + +Se necessário, antes de alterar uma senha, **identifique as contas existentes** com o seguinte comando: + +```bash +cat /etc/passwd +``` + +Exemplo de resultado (atalho): + +```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 +``` -Nota: numa distribuição GNU/Linux, **uma linha de comandos de palavra-passe não apresenta as suas entradas de teclado**. +Encontre o nome do utilizador na lista das contas. -Altere a palavra-passe do utilizador com o seguinte comando (substitua `username` pelo nome real da conta de utilizador): +Para alterar a palavra-passe de uma conta específica (por exemplo: **user1**), utilize este comando: ```bash -passwd username +passwd user1 ``` -```text -New password: -Retype new password: -passwd: password updated successfully +Introduza a nova palavra-passe duas vezes: + +```console +# New password: +# Retype new password: +# passwd: password updated successfully ``` +Numa distribuição GNU/Linux, **uma indicação de palavra-passe não apresenta as suas entradas de teclado**. + +> [!primary] +> +> Evite executar o comando `passwd` sem argumentos: este comando modifica a senha da conta atual (que é frequentemente **root** após a execução de `chroot`). +> Sempre especifique `passwd `. + Lembre-se de utilizar o modo de arranque **normal** do seu servidor quando o reiniciar a partir da sua [Área de Cliente OVHcloud](/links/manager). Consulte [manual do modo rescue](#step1) se necessário. -Agora já tem acesso ao servidor com a sua nova palavra-passe. +A conta de utilizador modificada terá acesso ao servidor com a nova palavra-passe. ## Quer saber mais? diff --git a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/meta.yaml b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/meta.yaml index cbae36c2fa4..72e61cd0690 100644 --- a/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/meta.yaml +++ b/pages/bare_metal_cloud/dedicated_servers/replacing-user-password/meta.yaml @@ -1,3 +1,4 @@ id: 0486fca9-8510-41dd-96be-f534a74aed1c full_slug: dedicated-servers-change-password +translation_banner: true reference_category: bare-metal-cloud-dedicated-servers-troubleshooting \ No newline at end of file