Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root Техника

Open the server’s VNC Console using the button of the same name:

Ubuntu server восстановление пароля root

Restart the server using «Send CtrlAltDel» button in the VNC Console window.

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

Press ‘e’ to edit the boot menu. Changes will persist until next boot.

Scroll down to the line that starts with «linux /boot «. Remove the parameters highlighted in green on the picture below:

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

Restart the server with reboot command:

Share

If you have lost the root password of your server, and you cannot access the server as root, then this article will help you resolve this issue.

To do this, you must access the server console. The server console can be accessed via the customer panel portal.servers.com.

The password reset algorithm is quite simple:

Let us examine in detail how reset the password for Ubuntu 16.04.

If the server is turned on and loaded, restart it by pressing CTRL + ALT + DEL. If not, turn on the server. After the BIOS menu, before the OS starts, a timer appears. To stop it and access the GRUB boot menu, press any key, preferably ESC.

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

As a result, you get a console where you should run the command:

Enter the new root password twice.

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

The root password is now changed. Save the changes and restart.

Password Recovery Ubuntu Server 18.04 LTS

Hello Post4VPS Community

In this brief guide I will provide instructions to perform a password recovery on a server or computer with Ubuntu 18.04 LTS or Ubuntu Server 18.04 LTS (it might as well work on older or newer versions). This information can be useful if you have forgot your root password. To perform the necessary steps you need to have VNC access or physical access to your server or computer.

Дополнительно:  Как получить root-доступ к Xiaomi Redmi Note 8 Pro?

Let’s get started.

Reboot your server or computer. When it is booting up hit the SHIFT key until you get into the GRUB boo tmenu. You migh need several tries depending on the hardware setup and how the OS was installed (Legacy vs UEFI and etc. can effect how the OS boots). It’s a bit tricky especially if you’re on modern and very fast hardware the OS boots really quick.

Once you are in GRUB it should look a bit like in the screenshot below (Ubuntu Server 18.04 LTS):

Ubuntu server восстановление пароля root

In the GRUB boot menu select the Ubuntu entry and hit the E key to enable edit mode for the boot entry.

^ This is an example from a Ubuntu Server 18.04 LTS VPS (might look different on a different machine).

Change «ro maybe-ubiquity» to «rw init=/bin/bash».

Enter a new password and confirm it.

Reboot the server or computer to boot into the normal Ubuntu environment using the command below:

Login with your new root password.

Ubuntu server восстановление пароля root

Thank you Hidden for a brief explanation.It is a very unique article on internet.Last night i have searched a lot on google duckduckgo but, i found nothing. found a single method but were unable to recover my password. i hope, i will not face this problem in future but if i, it will be very easy to recover password with your tutorial.

once again Thank you.

This tutorial is precise and to the point. I really liked the way you explain things with the help of an example image. Thanks for this!

Thank you to Post4VPS and VirMach for my awesome VPS 9!

Дополнительно:  Enable and Disable Root User Account on Ubuntu 20.04

In this article, you will learn how to reset the forgotten root password on Ubuntu 18.04 LTS and Ubuntu 20.04 LTS.

Firstly, you need to either power on or reboot your Ubuntu system. You should get a grub menu as shown below. If you are running your system on VirtualBox, press the ‘SHIFT’ key on the keyboard to bring up the boot menu.

Ubuntu server восстановление пароля root

Ubuntu Grub Menu

Next, press the ‘e’ key to edit the grub parameters. This should display a screen as shown below.

Ubuntu server восстановление пароля root

Grub Boot Parameters

Scroll down until you get to the line that begins with ‘linux /boot/vmlinuz’ the entire line is highlighted below.

Ubuntu server восстановление пароля root

Find Grub Boot Parameter

Narrow down to a section that reads «ro quiet splash $vt_handoff».

Ubuntu server восстановление пароля root

Locate Grub Boot Parameter

Replace «ro quiet splash $vt_handoff» with rw init=/bin/bash as shown. The aim is to set the root file system with read and write commands denoted by the rw prefix.

Ubuntu server восстановление пароля root

Enable Root Filesystem

Thereafter, press ctrl + x or F10 to reboot your system. Your system will boot into a root shell screen as shown below. You can confirm that the root filesystem had read and write access rights by running the command.

The output in the screenshot below confirms read and write access rights denoted by rw.

Ubuntu server восстановление пароля root

Confirm Root Filesytem Permissions

To reset the root password execute the command.

Provide a new password and confirm it. Thereafter, you will get a ‘password updated successfully’ notification.

Ubuntu server восстановление пароля root

Reset Root Password in Ubuntu

With the root password successfully changed, reboot into your Ubuntu system by running the command.

Дополнительно:  Задание пароля root mysql

# exec /sbin/init

Thank you for coming this far. We hope that you can now comfortably reset the forgotten root password on your Ubuntu system from the grub menu.

If you read this far, tweet to the author to show them you care. Tweet a thanks

Если был потерян, либо забыт root-пароль от сервера то его можно восстановить. Это можно сделать с помощью VNC-консоли, которая расположена в панели управления, выбрать услугу и перейти в меню VNC-консоль.

Преимущество данной консоли в том, что подключение к серверу осуществляется локально и сервер всегда доступен, если не отключен.

Алгоритм восстановления root-пароля:

Сброс пароля на примере ОС Ubuntu 18

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

Сброс пароля на примере ОС CentOS 7

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

Ubuntu server восстановление пароля root

Оцените статью
Master Hi-technology