Ubuntu forgot your password, forgot your root password? Although it is a small probability event, it can still happen. So, what do we do when we forget to forget the Ubuntu root password? Let's take a look at the solution given by Principal Ubuntu.
Ubuntu's root is forbidden by default. It is not required to set the root password during installation. It is different from the Red Hat system series here. To use root under Ubuntu, we can use the terminal to set the password for root
sudo passwd root If you just forget the ordinary user password, you can modify it with root. If root is forgotten, it goes into single-user mode, which is different from the Red Hat system series.
The specific method is as follows:
Enter single user mode:
#1, when booting into grub, use the up and down keys to move to the recovery mode of the second line, press e ( Note that it is not a carriage return)
#2,
Change ro single to rw single init=/bin/bash, then press ctrl+x to enter single-user mode, go in and do anything okay. (Going in is the command line, so you have to understand the command line!) We can modify the normal user password, or change the root password. Prompt, after completion, press ”ctrl+alt+delete“ combination god key to restart (I tried to use the command to shut down, restart will not work, can only use this).
These are all tried and successful, you can try it! I have seen some online methods and tried them. It is not acceptable! Some are using the Red Hat system series, some are wrong!
To change the password of a normal user, the command is in the following format:
passwd username
Will the Linux server crash? Of course, I have been exposed to a certain type of server. After inst
Linux is a derivative of Unix operating system , Linux has built-in tools to view the current proce
vmstat is a tool for viewing virtual memory usage. General format: vmstat [-V] [-n] [delay [count]]C
When I maintain the blog file today, I found that I cant delete some folders and files in the websi
Linux disk space occupation view
CentOS installs X Window with yum
IDE data transfer mode (PIO, DMA)
Squid, nginx, lighttpd reverse proxy difference
Some common commands for using iptables to block ip segments under Linux
Linux interview questions Daquan
Use openssl to complete the mutual conversion between X509 certificate and PFX certificate
Solve SecureCRT Chinese garbled
How to use the capability feature to enhance the security of Linux systems
Win8Metro application automatic update function how to close
Win7 system hard disk flashing failure solution
Let the stubborn video in Windows XP disappear into the
Chrome google browser icon in Win7 taskbar shows anomalous solution
How to solve the garbled WinXP system?
Linux operating system shell command line tips sharing
How does Win10 remove the OneDrive icon in the navigation pane?
Windows8.1 Update restores the modern toolbar trick
Win7 system boot prompts An operating system wasnt found error reasons and three solutions