当前位置:网站首页>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密码登录就可以了
边栏推荐
- Map的扩容机制
- Personal outlook | looking forward to the future from Xiaobai's self analysis and future planning
- The request database reported an error: "could not extract resultset; SQL [n/a]; needed exception is org.hibernate.exception.sqlgram"
- 今天很多 CTO 都是被幹掉的,因為他沒有成就業務
- Introduction to rust Foundation (basic type)
- Apache+php+mysql environment construction is super detailed!!!
- Primary school campus IP network broadcasting - Design of primary school IP digital broadcasting system based on campus LAN
- 32GB Jetson Orin SOM 不能刷机问题排查
- AtCoder Beginner Contest 258(A-D)
- Go practice -- use JWT (JSON web token) in golang
猜你喜欢
Differences among bio, NiO and AIO
redis 无法远程连接问题。
Webrtc protocol introduction -- an article to understand ice, stun, NAT, turn
[set theory] relational closure (relational closure related theorem)
配置xml文件的dtd
Go practice - gorilla / handlers used by gorilla web Toolkit
Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
谷歌 | 蛋白序列的深度嵌入和比对
Technical analysis of qianyuantong multi card aggregation router
[set theory] relational closure (reflexive closure | symmetric closure | transitive closure)
随机推荐
Explanation of several points needing attention in final (tested by the author)
[practical project] autonomous web server
Learn libcef together -- set cookies for your browser
Congratulations to musk and NADELLA on their election as academicians of the American Academy of engineering, and Zhang Hongjiang and Fang daining on their election as foreign academicians
Map的扩容机制
穀歌 | 蛋白序列的深度嵌入和比對
Get and monitor remote server logs
Webrtc native M96 version opening trip -- a reading code download and compilation (Ninja GN depot_tools)
求质数的方法
Niuke JS separator
Hotel public broadcasting background music - Design of hotel IP network broadcasting system based on Internet +
How do I migrate my altaro VM backup configuration to another machine?
Obtenir et surveiller les journaux du serveur distant
Altaro virtual machine replication failed: "unsupported file type vmgs"
大二困局(复盘)
[untitled]
@Autowired 导致空指针报错 解决方式
The request database reported an error: "could not extract resultset; SQL [n/a]; needed exception is org.hibernate.exception.sqlgram"
Interview question -- output the same characters in two character arrays
Method of finding prime number