How to change root password

From EN Ikoula wiki
Revision as of 03:57, 22 February 2016 by Ikbot (talk | contribs) (Created page with "<br /> This article has been created by an automatic translation software. You can view the article source here.<br /><span da...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽


This article has been created by an automatic translation software. You can view the article source here.

Problem

You have lost your root password (Linux ) and want to know how to recover.

Application to Ikoula

If you have problems and want that Ikoula is responsible for recovery. You can order a timely intervention of root password recovery since your Ikoula client interface :

  • Go to the tab Account
  • Click on Buy more services
  • Click on Interventions
  • Choose Reset password
  • Adjust your order in Account -> Balance
  • Contact our technical support at ikoula@ikoula.cOM since your technical contact address and please indicate this Server you want to recover the password

Netboot

If instead you want to load yourself, be aware that it is not possible to recover, you need to modify it through a session System rescue also called NETBOOT.

Netboot Server dedicated physics

We invite you to follow the FAQ fr: 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 fr:Netboot_sur_serveur flex that will explain how to do this.

Password recovery

Once your Server started by netboot, log in to the SSH. Are those by default in the mail delivery of your Server. Then it is necessary to Mount the partitions so that they are accessible. Ex with a standard partitioning (orders will be to adapt to your case ) :

  • It first creates the destination folder :
     # mkdir /mnt/disk
  • Then we go up the system this folder :
     # Mount  /dev/sda3 /mnt/disk

If you have a RAID system, the command will be :

     # mount /dev/md1 /mnt/disk
  • Once mounted partitions you must perform a 'change of root ' (chroot ) to simulate being on your system, via the command :
     # chroot /mnt/disk /bin/bash
  • Then, there is more to define a new password :
    # passwd

This command will ask you to type 2 both 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.



You are not allowed to post comments.