当前位置:网站首页>Solution of user and root forgetting password in virtual machine
Solution of user and root forgetting password in virtual machine
2022-06-12 15:23:00 【Stars_ min】
!!! The operation may be different with different versions , But the general process is like this , It is recommended to take a snapshot first , Changing the password , Prevent system problems
1. Ubuntu Forgot the password in
1.1 root Change Password
1.1.1 restart Ubuntu, Long press shift Get into grub menu , choice recovery mode Click enter :

1.1.2 Get into "Recovery Menu" page , choice "root Drop to root shell prompt", Click enter

1.1.3 appear “[email protected]:~#” identification

1.1.4 Input passwd, Yes root Change the password

This question must be answered with "mount -o rw,remount /" Order to solve
1.2 Ordinary users change password
1.2.1 restart Ubuntu, Long press shift Get into grub menu , choice recovery mode, Press e Editing , Remember not to enter

1.2.2 In the interface that appears , find ro recovery nomodeset Replace with rw single init=/bin/bash


1.2.3 Press ctrl+x Get into
1.2.4 Input passwd + [ user name ] Change the password , Yes successfully Prompt to prove that the password is changed successfully

2. Centos 6 Forgot the password in
2.1 After startup , Quick click e , You will enter the following interface

2.2 Click again on the e , Select the second term ( With kernel start ), Click again on the e , Go to the edit page


2.3 Add... To the last line of the edit page 1 perhaps single , Carriage return confirmation

2.4 Finish the previous step , The interface returns to the second step , Press this time b , Enter the boot system

2.5 stay # Type in passwd root , To reset root password , After entering the new password, a message appears successfully, Prove that the modification was successful , Restart the system , Log in with a new password OK 了
边栏推荐
- IGMP message (tcp/ip details volume 1/ Volume 2)
- 2021-06-20
- Kinect2.0+ORBSLAM2_with_pointcloud_map
- Conversion between sparse array and array and file reading and writing
- 机器人前行、旋转的service编写
- Differences between microservice architecture and SOA Architecture
- IMU的学习记录
- Deepin20.6 RTX3080 安装显卡驱动510.60.02、CUDA11.6、PyTorch1.11
- How to write year-end summary
- C main function
猜你喜欢

Dart typedef的理解

Explanation of socket principle (where, what and how to use it)

3D reconstruction system | L3 incremental motion recovery structure (incremental SFM)

How to set public IP access on the H3C gr5200 router

Deepin20.6 rtx3080 installer le lecteur de carte graphique 510.60.02, cuda 11.6, pytorch1.11

Use of boost:: bind() in ROS

jupyter notebook新環境快捷方式

UDP summary (tcp/ip details volume 1/2)

RARP总结(TCP/IP详解卷1/2)

Two ways of array simulating queue
随机推荐
SCUACM22暑假集训前劝退赛部分题解
Increase the maximum number of MySQL connections
MySQL开发注意事项(阿里巴巴开发手册)
Apprendre est une chose contre la nature humaine
IGMP message (tcp/ip details volume 1/ Volume 2)
Servlet connects to database to realize user login function
Understanding of Odom coordinate system
Singleton mode instance
Differences between microservice architecture and SOA Architecture
解决log4j2漏洞遭到挖矿、僵尸进程病毒攻击
odom坐标系的理解
USART (rs232422485), I2C, SPI, can, USB bus
C operator
Is it safe to open an account for flush mobile stock trading
安装rhel 7/8 (红帽)虚拟机(转载)
远程操控其它电脑--详细教程
New features of ES6
Learning is an inhumane thing (becoming an expert's internal mind skill)
Points chocolate (two points answer) Blue Bridge Cup provincial competition
Remote control of other computers -- detailed tutorial