1. Knowledge base
  2. General
  3. Recover root password for Ubuntu 14.04

Recover root password for Ubuntu 14.04

Updated on 18 April 2023 3 min read Snel.com support team

Introduction

In this article, we will learn how to reset the forgotten password of a root user account on Ubuntu 14.04 operating system.

Prerequisites

  1. You should have a VPS, Budget Server, or Dedicated Server with Ubuntu 14.04 installed.
  2. You should have access to your Snel client control panel to open a KVM console.

Note: You can not reset the root password using the OpenSSH shell. You must have access to the KVM console of your server to follow along.

Open KVM Console

To open a KVM console on for dedicated server or managed dedicated server, please use this article.

To open a KVM console for budget server please use this article.

To open a KVM console for VPS, login to your Snel account and click on your VPS under services.

VPS

Under the VPS service details page, click on Console to open up the KVM console.

Console

You should have the KVM console open in a new browser tab.

KVM Console

Reboot Machine

While you have your KVM console open, reboot the server to get the GRUB menu.

Dedicated server users: Open the Server Power Control tab from the service details page of the dedicated server. Click the Reboot button to reboot the server.

Reboot Dedicated Server

VPS users: Open the service details page of the VPS and click on the Reboot button.

Reboot VPS

Note: After rebooting your server quickly go to the KVM console as GRUB menu waits only a few seconds before booting OS.

Modify Boot Parameters

After rebooting the VM quickly switch to KVM console and keep pressing SHIFT key repeatedly until you see the GRUB screen. You may need to do this very quickly to get the GRUB menu.

Note: If you missed the grub screen, go ahead and reboot your server again.

In GRUB menu, press e to edit the boot parameters.

GRUB Menu

In GRUB edit mode, find the line which starts with linux and has ro at the end of the line.

Replace ro with rw init=/bin/bash as shown in the picture.

Edit GRUB

Once done, press Ctrl-x to boot with changed parameters.

Reset Password

Run the clear command to clear the system messages from the terminal.

Run the following command to change the password.

Code
passwd

Change Password

Now, run the command to reboot the server. You may also use snel control panel reboot buttons described in Step 2 to reboot the machine.

Code
exec /sbin/init 6

Conclusion

In this tutorial, we learned how to reset the password of the root user on Ubuntu 14.04 operating system.

Was this article helpful?

Spot a mistake in this article? Email us at support@snel.com

This article was last checked on 18 April 2023. · 8,602 views

Your own VPS online within 2 minutes

Windows or Linux, root access and hosted in Rotterdam.

View VPS from € 6.99

Support

Can't figure it out? We are happy to help

You always talk to a real engineer. We typically respond within 15 to 30 minutes, and 24/7/365 for outages.

Call us

+31 88 3 088 099

Create a ticket

Through the client area we immediately see which service it is about.

Email us

Send your question via the contact form, also outside office hours.