当前位置:网站首页>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密码登录就可以了

边栏推荐
- Together, Shangshui Shuo series] day 9
- [practical project] autonomous web server
- Why should we rewrite hashcode when we rewrite the equals method?
- Personal outlook | looking forward to the future from Xiaobai's self analysis and future planning
- Redis cannot connect remotely.
- Intégration profonde et alignement des séquences de protéines Google
- Go practice -- gorilla / websocket used by gorilla web Toolkit
- Robot capture experiment demonstration video
- 今天很多 CTO 都是被干掉的,因为他没有成就业务
- 獲取並監控遠程服務器日志
猜你喜欢

Final review (Day5)
![[practical project] autonomous web server](/img/99/892e600b7203c63bad02adb683c8f2.png)
[practical project] autonomous web server

Webrtc native M96 version opening trip -- a reading code download and compilation (Ninja GN depot_tools)

【一起上水硕系列】Day 7 内容+Day8

Primary school campus IP network broadcasting - Design of primary school IP digital broadcasting system based on campus LAN

Altaro virtual machine replication failed: "unsupported file type vmgs"

Go practice - gorilla / handlers used by gorilla web Toolkit
![[together Shangshui Shuo series] day 7 content +day8](/img/fc/74b12addde3a4d3480e98f8578a969.png)
[together Shangshui Shuo series] day 7 content +day8

Analysis of the example of network subnet division in secondary vocational school

Notepad++ wrap by specified character
随机推荐
32GB Jetson Orin SOM 不能刷机问题排查
Communication - how to be a good listener?
How to set up altaro offsite server for replication
Deploy crawl detection network using tensorrt (I)
一起上水碩系列】Day 9
Azure file synchronization of altaro: the end of traditional file servers?
6.23星期四库作业
2022.7.2day594
[untitled]
[Shangshui Shuo series together] day 10
AtCoder Beginner Contest 258(A-D)
AtCoder Beginner Contest 258(A-D)
Go practice -- closures in golang (anonymous functions, closures)
2022.6.30DAY591
期末复习(Day5)
3dslam with 16 line lidar and octomap
穀歌 | 蛋白序列的深度嵌入和比對
Analysis of the example of network subnet division in secondary vocational school
Learn libcef together -- set cookies for your browser
2022.6.30DAY591