website logo
⌘
K
VPS HostingDedicated ServerBlogContact
EDIS Global Documentation
Getting Started
Check your Inbox
Linux Secure Shell (SSH)
Windows Remote Desktop
Backups
Acceptable Use Policy (AUP)
VPS Management
VPS Management Portal
Install Linux/Windows
Power cycle or reboot a VPS
Forgot Linux root Password
Mount an ISO image
Provide a custom ISO image
Enable VNC server
IP address settings
IPv6 configuration
IPv6 Troubleshooting
KVM REST API
FAQ
What is a Virtual Private Server?
What is a KVM VPS?
Free trials available?
Port 25 open for email?
Windows RDP available?
Hourly plans available?
IP Addresses
Server Locations
Billing & Lifecycle
Traffic (bandwidth)
Upgrades, Downgrades
Misc
Docs powered by
Archbee
VPS Management

Forgot Linux root Password

3min

Set a New Password by booting your Linux VPS in Single-User Mode

EDIS does not install KVM guest drivers in its virtual machines. You receive authentic OS images, without any open doors. This comes at the price though. It is not possible to change the root password from the administration panel. Nevertheless, it is possible to set a new password after booting the machine in single-user mode using VNC.

Follow these easy steps if you no longer have access to your Linux operating system and you need to set a fresh KVM root password.



1

Start by Enabling VNC from the KVM-Panel. VNC is kind of a "remote access to your server's keyboard and screen".

Document image

2

Lauch noVNC session

3

Reboot your VPS

4

Press any key to enter the Grub (boot loader) menu, once the following screen shows

grub

5

Press e on your keyboard to edit the kernel boot options.

grub_menu

6

Highlight the second stanzas (line) and press e again.

grub_edit

7

You will now be able to edit the line highlighted in the previous step. Simply add 1 at the end of the line as indicated in the following screenshot, then confirm pressing Enter. On Debian, add "init=/bin/bash" instead of "1" at the end of the line.

grub_edit2

8

Now you see the Grub stanzas as shown in step 5.

Press b to continue booting, using the modified configuration. Linux will now boot into single-user mode, allowing for some special administrative tasks. (This will provide you with root access without the need to enter the root password) and can be used to set a new root password. Once the system is up and running type the following command to update the root password:

Shell
|
passwd root


You will be asked to enter a new password for the user root.

9

Once finished, reboot your VPS and you will be able to use the newly set root password





The principle of how to reset a forgotten root password is described here:





Updated 21 Sep 2023
Did this page help you?
PREVIOUS
Power cycle or reboot a VPS
NEXT
Mount an ISO image
Docs powered by
Archbee
TABLE OF CONTENTS
Set a New Password by booting your Linux VPS in Single-User Mode
Docs powered by
Archbee