Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. Hello,
  2.  
  3. Thank you for contacting Soyoustart concerning the recovery of the password, it will be my pleasure to assist you.
  4.  
  5. You should be able to find your access credential through the email sent to you after the installation of the OS, if you have change the password previously, then you will need to change the password through the rescue mode.
  6.  
  7. Here's a step-by-step guide to help you reset a password (root or other user) through the Linux rescue mode.
  8.  
  9. 1.1 Log in to your Soyoustart control panel.
  10. 1.2 On the top right, select "Netboot".
  11. 1.3 Select "Rescue", and at "Rescue available", select "rescue64-pro".
  12. 1.4 Reboot the server.
  13.  
  14. Once the netboot is set, you will need to restart your server
  15.  
  16. 2. Log in to your server using the SSH credentials you've received via email. For example, for the “root” account on a server that has the following fictitious IP address: 192.168.1.1
  17. ssh root@192.168.1.1
  18.  
  19. You will then be asked for the credentials you've received by email. Once logged in none of the hard drives are yet mounted, so the change cannot yet be made.
  20.  
  21. 3. You'll need to identify which drive contains your “/” directory, which you will later be mounting. Type the following command:
  22. parted -l
  23.  
  24. You will then be presented with a list of unmounted drives and their respective partitions. You will need to use the “tune2fs” tool on each partition to find the “/” directory. Here is an example of what you should be typing:
  25.  
  26. tune2fs -l /dev/md0
  27. tune2fs -l /dev/md1
  28. tune2fs -l /dev/md2
  29. tune2fs -l /dev/md3
  30. etc.
  31.  
  32. tune2fs -l /dev/sda1
  33. tune2fs -l /dev/sda2
  34. etc.
  35.  
  36. You're looking for a line with the following result (it's usually among the first lines of the output):
  37. Last mounted on: /
  38.  
  39. If a server has a software RAID, you will see “Model: Linux Software RAID Array (md) ”. You'd be looking for something like /dev/md1 or /dev/md3 for example.
  40.  
  41. If the server has no RAID configured, you will see the partitions for each disk by look at "Disk /dev/sda" and then checking the "Number" column below it: paritions would be then /dev/sda1, /dev/sda2, etc.
  42.  
  43. Once you have identified the appropriate partition, for example /dev/md1 (which is in RAID), you will need to mount that drive. Type the following command:
  44. mount /dev/md1 /mnt
  45.  
  46. Now, /dev/md1 will be mounted in /mnt. The next step is to become the root user associated with that drive. Type the following command:
  47. chroot /mnt
  48.  
  49. Once this is done, enter the following command:
  50. passwd root
  51.  
  52. You will then be prompted to change the password (and then type it again to confirm it) of the root account. Once that's done, you'll have to change back the "Netboot" option in the Control Panel to "Boot on hard disk". You can then reboot your server with the following command (or using the hard reboot option in the Manager):
  53. reboot
  54.  
  55. Let me know if you are still having issues.
  56.  
  57.  
  58. For any other questions or concerns, please feel free to contact us through a support ticket or through our toll-free line at 1-844-768-7827. We’re here 24/7 to help you!
  59.  
  60. We thank you again for choosing SoyouStart,
  61.  
  62. Tony Z.
  63. Customer Advocate
  64. Make sure to consult our guides : https://docs.ovh.com/ca/en/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement