Difference between revisions of "How to change root password"
(Created page with "<br /> This article has been created by an automatic translation software. You can view the article source here.<br /><span da...") |
|||
(22 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <br /> | + | <br />This article has been created by an automatic translation software. You can view the article source [[:fr:Comment changer son mot de passe root|here]].<br /><span data-translate="fr"></span><br /> |
+ | <span data-link_translate_fr_title="Comment changer son mot de passe root" data-link_translate_fr_url="Comment changer son mot de passe root"></span>[[:fr:Comment changer son mot de passe root]][[fr:Comment changer son mot de passe root]] | ||
+ | <span data-link_translate_he_title="כיצד לשנות את הסיסמה שורש" data-link_translate_he_url="%D7%9B%D7%99%D7%A6%D7%93+%D7%9C%D7%A9%D7%A0%D7%95%D7%AA+%D7%90%D7%AA+%D7%94%D7%A1%D7%99%D7%A1%D7%9E%D7%94+%D7%A9%D7%95%D7%A8%D7%A9"></span>[[:he:כיצד לשנות את הסיסמה שורש]][[he:כיצד לשנות את הסיסמה שורש]] | ||
+ | <span data-link_translate_ro_title="Cum se schimba parola de root" data-link_translate_ro_url="Cum+se+schimba+parola+de+root"></span>[[:ro:Cum se schimba parola de root]][[ro:Cum se schimba parola de root]] | ||
+ | <span data-link_translate_ru_title="Как изменить пароль пользователя root" data-link_translate_ru_url="%D0%9A%D0%B0%D0%BA+%D0%B8%D0%B7%D0%BC%D0%B5%D0%BD%D0%B8%D1%82%D1%8C+%D0%BF%D0%B0%D1%80%D0%BE%D0%BB%D1%8C+%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D1%82%D0%B5%D0%BB%D1%8F+root"></span>[[:ru:Как изменить пароль пользователя root]][[ru:Как изменить пароль пользователя root]] | ||
+ | <span data-link_translate_pl_title="Jak zmienić hasło roota" data-link_translate_pl_url="Jak+zmieni%C4%87+has%C5%82o+roota"></span>[[:pl:Jak zmienić hasło roota]][[pl:Jak zmienić hasło roota]] | ||
+ | <span data-link_translate_ja_title="Root のパスワードを変更する方法" data-link_translate_ja_url="Root+%E3%81%AE%E3%83%91%E3%82%B9%E3%83%AF%E3%83%BC%E3%83%89%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95"></span>[[:ja:Root のパスワードを変更する方法]][[ja:Root のパスワードを変更する方法]] | ||
+ | <span data-link_translate_ar_title="كيفية تغيير كلمة السر الجذر" data-link_translate_ar_url="%D9%83%D9%8A%D9%81%D9%8A%D8%A9+%D8%AA%D8%BA%D9%8A%D9%8A%D8%B1+%D9%83%D9%84%D9%85%D8%A9+%D8%A7%D9%84%D8%B3%D8%B1+%D8%A7%D9%84%D8%AC%D8%B0%D8%B1"></span>[[:ar:كيفية تغيير كلمة السر الجذر]][[ar:كيفية تغيير كلمة السر الجذر]] | ||
+ | <span data-link_translate_zh_title="如何更改 root 密码" data-link_translate_zh_url="%E5%A6%82%E4%BD%95%E6%9B%B4%E6%94%B9+root+%E5%AF%86%E7%A0%81"></span>[[:zh:如何更改 root 密码]][[zh:如何更改 root 密码]] | ||
+ | <span data-link_translate_de_title="Root-Passwort ändern" data-link_translate_de_url="Root-Passwort+%C3%A4ndern"></span>[[:de:Root-Passwort ändern]][[de:Root-Passwort ändern]] | ||
+ | <span data-link_translate_nl_title="Het root-wachtwoord wijzigen" data-link_translate_nl_url="Het+root-wachtwoord+wijzigen"></span>[[:nl:Het root-wachtwoord wijzigen]][[nl:Het root-wachtwoord wijzigen]] | ||
+ | <span data-link_translate_it_title="Come cambiare la password di root" data-link_translate_it_url="Come+cambiare+la+password+di+root"></span>[[:it:Come cambiare la password di root]][[it:Come cambiare la password di root]] | ||
+ | <span data-link_translate_pt_title="Como alterar a senha de root" data-link_translate_pt_url="Como+alterar+a+senha+de+root"></span>[[:pt:Como alterar a senha de root]][[pt:Como alterar a senha de root]] | ||
+ | <span data-link_translate_es_title="Cómo cambiar la contraseña de root" data-link_translate_es_url="C%C3%B3mo+cambiar+la+contrase%C3%B1a+de+root"></span>[[:es:Cómo cambiar la contraseña de root]][[es:Cómo cambiar la contraseña de root]] | ||
+ | <span data-link_translate_en_title="How to change root password" data-link_translate_en_url="How+to+change+root+password"></span>[[:en:How to change root password]][[en:How to change root password]] | ||
− | + | {{#seo: | |
+ | |title=How to change root password | ||
+ | |title_mode=append | ||
+ | |keywords=these,are,your,keywords | ||
+ | |description=In this article discover how to retrieve you root password | ||
+ | |image=Uploaded_file.png | ||
+ | |image_alt=Wiki Logo | ||
+ | }} | ||
− | ==Problem == | + | ==Problem== |
− | You have lost your root password | + | You have lost your '''''root password''''' (Linux) and want to know how to retrieve. |
− | == | + | ==Request to Ikoula== |
− | If you | + | If you're having trouble and want that Ikoula is in charge of the recovery. You can order a one-off intervention of recovery of root password for your [https://order.ikoula.com/cp Ikoula client interface] : |
− | * | + | * Allez sur l'onglet '''Compte''' |
− | * | + | * Cliquez sur '''Acheter plus de services''' |
− | * | + | * Cliquez sur '''Interventions ponctuelles''' |
− | * | + | * Choisissez '''Reset mot de passe''' |
− | * | + | * Réglez votre commande dans '''Compte''' -> '''Balance''' |
− | * | + | * Contactez notre support technique à ikoula@ikoula.com depuis votre adresse de contact technique et indiquez le {{Template:Serveur}} you wish to recover the password |
− | ==Netboot == | + | ==Netboot== |
− | + | Si au contraire vous souhaitez vous en chargez vous-même, sachez qu'il n'est pas possible de le récupérer, il vous faudra le modifier en passant par une session ''Rescue System'' aussi nommée ''NETBOOT''. | |
− | ===Netboot {{Template:Serveur}} dedicated physics === | + | ===Netboot {{Template:Serveur}} dedicated physics=== |
− | We invite you to follow the FAQ | + | We invite you to follow the FAQ [[ Qu’est_ce_que_le_netboot_et_comment_le_lancer_?]] that will explain how to do this. |
− | ===Netboot {{Template:Serveur}} dedicated virtual | + | ===Netboot {{Template:Serveur}} dedicated virtual (FLEX)=== |
− | It depends on the host on which your | + | It depends on the host on which your {{Template:Serveur}} is present. |
− | We invite you to follow the FAQ | + | We invite you to follow the FAQ [[Netboot_sur_serveur flex]] that will explain how to do this. |
− | == | + | ==The password recovery== |
− | Once your | + | Once your {{Template:Serveur}} started by netboot, connect to it in ssh. Access is present by default in the e-mail delivery of your.{Template:Serveur}}. |
− | Then | + | Then you must mount the partitions so that they are accessible. |
− | Ex with a standard partitioning | + | Ex with a standard partitioning (orders will be to adapt to your case) : |
− | * | + | * We first create the destination folder : |
− | <span style="color: #ffffff; background-color: #000000;"> # mkdir /mnt | + | <span style="color: #ffffff; background-color: #000000;"> # mkdir /mnt</span> |
− | * Then we go up the system this folder | + | * Then we go up the system in this folder : |
− | <span style="color: #ffffff; background-color: #000000;"> # | + | <span style="color: #ffffff; background-color: #000000;"> # mount /dev/sda3 /mnt</span> |
− | If you have a RAID system, the command | + | If you have a RAID system, the command is : |
− | <span style="color: #ffffff; background-color: #000000;"> # mount /dev/md1 /mnt/ | + | <span style="color: #ffffff; background-color: #000000;"> # mount /dev/md1 /mnt</span> |
+ | <br> | ||
+ | * IN UBUNTU/Debian if the installation is done with LVM :<BR/> | ||
+ | <span style="color: #ffffff; background-color: #000000;"># lvscan </span><br> | ||
+ | <span> => ACTIVE '/dev/VolGroup00/root' [929.51 GiB] inherit (the message in return gives you the area to be mounted)<span><br/> | ||
− | + | <span style="color: #ffffff; background-color: #000000;"> # mount /dev/VolGroup00/root /mnt/ | |
− | |||
− | * Then, | + | In case the partition is inactive, please run the following command to activate this LVM partition (to be adapted according to the path of the partition). |
+ | |||
+ | <span style="color: #ffffff; background-color: #000000;"># lvchange -a y /dev/VolGroup00/root</span><br> | ||
+ | |||
+ | Your root is now available. | ||
+ | <br> | ||
+ | <br> | ||
+ | * Once you have mounted the partitions you must perform a 'root change ' (chroot) in order to simulate being on your system, via the command : | ||
+ | <span style="color: #ffffff; background-color: #000000;"> # chroot /mnt /bin/bash</span> | ||
+ | |||
+ | * Then, it remains more to set a new password : | ||
<span style="color: #ffffff; background-color: #000000;"> # passwd</span> | <span style="color: #ffffff; background-color: #000000;"> # passwd</span> | ||
− | This command will ask you to type | + | This command will ask you to type 2 time on the new password. A first for initialization, the second for confirmation. |
* Finally, exit the chroot and reboot the machine. | * Finally, exit the chroot and reboot the machine. | ||
Line 57: | Line 91: | ||
[[Category:Dedicated_server]] | [[Category:Dedicated_server]] | ||
[[Category:Linux]] | [[Category:Linux]] | ||
− | |||
<br /> | <br /> | ||
<comments /> | <comments /> |
Latest revision as of 10:15, 27 September 2021
This article has been created by an automatic translation software. You can view the article source here.
fr:Comment changer son mot de passe root
he:כיצד לשנות את הסיסמה שורש
ro:Cum se schimba parola de root
ru:Как изменить пароль пользователя root
pl:Jak zmienić hasło roota
ja:Root のパスワードを変更する方法
ar:كيفية تغيير كلمة السر الجذر
zh:如何更改 root 密码
de:Root-Passwort ändern
nl:Het root-wachtwoord wijzigen
it:Come cambiare la password di root
pt:Como alterar a senha de root
es:Cómo cambiar la contraseña de root
en:How to change root password
Problem
You have lost your root password (Linux) and want to know how to retrieve.
Request to Ikoula
If you're having trouble and want that Ikoula is in charge of the recovery. You can order a one-off intervention of recovery of root password for your Ikoula client interface :
- Allez sur l'onglet Compte
- Cliquez sur Acheter plus de services
- Cliquez sur Interventions ponctuelles
- Choisissez Reset mot de passe
- Réglez votre commande dans Compte -> Balance
- Contactez notre support technique à ikoula@ikoula.com depuis votre adresse de contact technique et indiquez le Server you wish to recover the password
Netboot
Si au contraire vous souhaitez vous en chargez vous-même, sachez qu'il n'est pas possible de le récupérer, il vous faudra le modifier en passant par une session Rescue System aussi nommée NETBOOT.
Netboot Server dedicated physics
We invite you to follow the FAQ Qu’est_ce_que_le_netboot_et_comment_le_lancer_? that will explain how to do this.
Netboot Server dedicated virtual (FLEX)
It depends on the host on which your Server is present. We invite you to follow the FAQ Netboot_sur_serveur flex that will explain how to do this.
The password recovery
Once your Server started by netboot, connect to it in ssh. Access is present by default in the e-mail delivery of your.{Template:Serveur}}. Then you must mount the partitions so that they are accessible. Ex with a standard partitioning (orders will be to adapt to your case) :
- We first create the destination folder :
# mkdir /mnt
- Then we go up the system in this folder :
# mount /dev/sda3 /mnt
If you have a RAID system, the command is :
# mount /dev/md1 /mnt
- IN UBUNTU/Debian if the installation is done with LVM :
# lvscan
=> ACTIVE '/dev/VolGroup00/root' [929.51 GiB] inherit (the message in return gives you the area to be mounted)
# mount /dev/VolGroup00/root /mnt/
In case the partition is inactive, please run the following command to activate this LVM partition (to be adapted according to the path of the partition).
# lvchange -a y /dev/VolGroup00/root
Your root is now available.
- Once you have mounted the partitions you must perform a 'root change ' (chroot) in order to simulate being on your system, via the command :
# chroot /mnt /bin/bash
- Then, it remains more to set a new password :
# passwd
This command will ask you to type 2 time on the new password. A first for initialization, the second for confirmation.
- Finally, exit the chroot and reboot the machine.
# exit
# reboot
After reboot, you can log in as root on your machine via the new password that you set.
Enable comment auto-refresher