Resetting Dedicated server root password via Virtual Console

Depending on the manufacturer of your Dedicated server hardware and motherboard, you will have Supermicro Intelligent Platform Management Interface (IPMI) or Dell Remote Access Controller (iDRAC) to manage and monitor the server.

Both IPMI and iDRAC are accessible from our private network (VPN) only. All necessary instructions on how to setup a VPN connection to access the IPMI interface are here.


Launching virtual console

Resetting the root password





IPMI virtual console


In a web browser, type the 198.18.19.20 IP address, and log in using the IPMI access credentials from your Welcome email.



Click on a black screen inside the Remote console preview area, or navigate to the upper menu: Remote Control >> Console redirection and click the Launch Console button.



A launch.jnlp file will be downloaded to your workstation. Open it when the download has finished, check the I accept the risk and want to run this application checkbox and hit Run.



If you see the following security message:



You'll need to configure your Exception Site List and Security levels through the Java Control Panel.

Then, you should be able to launch Virtual Console.


iDRAC virtual console


In a web browser, type 198.18.19.20 IP address, and log in using IPMI access credentials from your Welcome email.



You will see a page very similar to the following. Click the Launch button:



A viewer.jnlp file will be downloaded. Open it and click Continue on a security warning window:



You may need to add the link to Exception Site List in Java Configuration.
When the java applet finishes installing, click Run.



And accept security warning:




Adjusting Exception Site List


The Exception Site List provides users with the option of allowing applets on a site-by-site basis, therefore minimizing the risk of using more permissive settings.

Follow the steps below to configure the exception site list:
  • Open the Java Control Panel app.
  • Navigate to the Security tab.
  • If the Security Level is set to Very High, reduce it to High. Click Apply.
  • Click Edit Site List to get the dialog that will allow you to add the application's URL to the Exception Site List.
  • Click Add in the Exception Site List window.
  • Click in the empty field under the Location field to enter the URL. (The URL should begin with http:// or https://)
  • Click Continue on the Security Warning dialog.
  • Click OK to save changes made to the Java Control Panel.






CentOS 7


In the Virtual Console window navigate to the upper menu and hit Macro >> Ctrl + Alt + Delete to reboot the server. After the installation reboots, it will come up to a boot countdown. Here, you can press any key to get to the GRUB menu. You will see a GRUB boot prompt. Press e on your keyboard to edit the first boot option.



Using arrow keys find the kernel line that starts with linux16 and edit it. You will need to change ro to rw init=/sysroot/bin/sh



Press Ctrl + X or F10 to boot single user mode. Now you can access the system with the command:

chroot /sysroot

And use the passwd command typing the new password twice to set a new password.

PLEASE NOTE: It is not possible to copy/paste in this window.



Reboot the server using the reboot -f command. Now that you can log into the server over SSH or a control panel, you’ll be able to set up a new more secure root password.


CentOS 6


In the Java iKVM Viewer window, navigate to the upper menu and hit Macro >> Ctrl + Alt + Delete to reboot the server. After the installation reboots, it will come up to a boot countdown. Here, you can press any key to get to the GRUB menu. From the GRUB menu, select the appropriate kernel version and press the e key. You will now be presented with the options menu for the kernel version.



Once the appropriate kernel version is chosen, you will get into the Kernel Options Menu:



From this menu, select the line that starts with kernel /vmlinuz- and press the e key. You will be presented with the kernel boot options.
Now, add the word single to the end of the line you see, as shown below:



Press Enter to save your changes. You will be taken back to Kernel Options Menu.
Press the b key to boot these temporary options, which will allow you to recover your root account:



Using the passwd command, type in and repeat your new root password and reboot the server via reboot -f







Comments

We welcome your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted.

If you need specific help with your account, feel free to contact our Support Team. Thank you.

Need help? We're always here for you.

× Close