当前位置:网站首页>Redhat7系统root用户密码破解
Redhat7系统root用户密码破解
2022-07-03 05:39:00 【钟爱陈奕迅】
相信大家都使用过Linux系统吧,那么Redhat7大家都不陌生。大家都知道创建一台Redhat7的虚拟机的时候,需要配置root用户的密码,那么问题出现了,有时候呢会忘记root的密码,那怎么办呢。接下来就给大家分享一个破解密码的小方法。
1、重启虚拟机,当进入GRUB界面时按空格键,也就是下面这个界面

2、操作完之后呢看到界面下方,按“E”进入编辑模式,进入编辑模式找到linux16这一行

3、将光标移动到linux16这一行最前面,按“END”键跳到末尾,将末尾的rhgb到最后这一段字符删除,删除完输入空格 以及rd.break
4、输入完成之后,按住Ctrl+X,进入到一个“假系统”

5、执行以下操作
mount -o remount,rw /sysroot
chroot /sysroot/
passwd
touch /.autorelabel

6、操作完成后,输入两次exit退出,系统自动重启

7、正常进入系统,使用修改的root密码登录就可以了

边栏推荐
- Final review (Day6)
- Map的扩容机制
- Deep embedding and alignment of Google | protein sequences
- (subplots usage) Matplotlib how to draw multiple subgraphs (axis field)
- Transferring images using flask
- 期末复习DAY8
- Introduction to redis using Lua script
- Export the altaro event log to a text file
- PHP笔记超详细!!!
- About debugging the assignment of pagenum and PageSize of the formal parameter pageweb < T > (i.e. page encapsulation generic) in the controller
猜你喜欢

配置xml文件的dtd

Altaro o365 total backup subscription plan

谷歌 | 蛋白序列的深度嵌入和比对

穀歌 | 蛋白序列的深度嵌入和比對

Go practice -- gorilla / websocket used by gorilla web Toolkit
![Together, Shangshui Shuo series] day 9](/img/39/c1ba1bac82b0ed110f36423263ffd0.png)
Together, Shangshui Shuo series] day 9

kubernetes资源对象介绍及常用命令(五)-(ConfigMap)

Differences among bio, NiO and AIO

Capacity expansion mechanism of map

一起上水硕系列】Day 9
随机推荐
Es 2022 officially released! What are the new features?
How to use source insight
Go practice - gorilla / handlers used by gorilla web Toolkit
Final review (Day5)
求质数的方法
Final review Day8
XML Configuration File
[untitled]
ES7 easy mistakes in index creation
Shanghai daoning, together with American /n software, will provide you with more powerful Internet enterprise communication and security component services
谷歌 | 蛋白序列的深度嵌入和比对
【无标题】
32GB Jetson Orin SOM 不能刷机问题排查
Go practice -- generate and read QR codes in golang (skip2 / go QRcode and boombuilder / barcode)
Introduction to redis using Lua script
(perfect solution) how to set the position of Matplotlib legend freely
获取并监控远程服务器日志
Redis使用Lua脚本简介
College campus IP network broadcasting - manufacturer's design guide for college campus IP broadcasting scheme based on campus LAN
"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)