reset pw ubuntu 20.04 login incorrect

Опубликовано: 13 Март 2021
на канале: linux-syr
44,504
280

I installed Ubuntu Server 20.04 on my lap without gui interface. . After the installation of the server has finished, I booted for the first time and I unable to login ("login incorrect").
Here is the solotion:
use this command to reset the password of your linux server:

rw init=/bin/bash
passwd root
exec /sbin/init

or follow this steps:

• Reboot your computer.

• Hold Shift during boot to start GRUB menu.

• Highlight your image and press E to edit.

• Find the line starting with "linux" and append rw init=/bin/bash at the end of that line.

• Press Ctrl + X to boot.

• Type in passwd username.

• Set your password.