当前位置:网站首页>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密码登录就可以了
边栏推荐
- Transferring images using flask
- Altaro virtual machine replication failed: "unsupported file type vmgs"
- Get and monitor remote server logs
- Pytorch through load_ state_ Dict load weight
- redis 遇到 NOAUTH Authentication required
- NG Textarea-auto-resize
- Troubleshooting of 32GB Jetson Orin SOM failure to brush
- Configure and use Anaconda environment in pycharm
- Skip table: principle introduction, advantages and disadvantages of skiplist
- Deploy crawl detection network using tensorrt (I)
猜你喜欢
Brief introduction of realsense d435i imaging principle
Classification and discussion of plane grab detection methods based on learning
ES7 easy mistakes in index creation
Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
今天很多 CTO 都是被干掉的,因为他没有成就业务
Notepad++ wrap by specified character
"C and pointer" - Chapter 13 advanced pointer int * (* (* (*f) () [6]) ()
Why should we rewrite hashcode when we rewrite the equals method?
"C and pointer" - Chapter 13 function of function pointer 1 - callback function 1
大二困局(复盘)
随机推荐
(subplots usage) Matplotlib how to draw multiple subgraphs (axis field)
Go practice -- factory mode of design patterns in golang (simple factory, factory method, abstract factory)
kubernetes资源对象介绍及常用命令(五)-(ConfigMap)
mysql启动报错:The server quit without updating PID file几种解决办法
Final review Day8
獲取並監控遠程服務器日志
redis 遇到 NOAUTH Authentication required
Redis breakdown penetration avalanche
Common interview questions of microservice
Altaro requirements for starting from backup on Hyper-V
Explanation of variables, code blocks, constructors, static variables and initialization execution sequence of static code blocks of Ali interview questions
PHP notes are super detailed!!!
Linux登录MySQL出现ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
一起上水碩系列】Day 9
Introduction to redis using Lua script
Apache+php+mysql environment construction is super detailed!!!
"250000 a year is just the price of cabbage" has become a thing of the past. The annual salary of AI posts has decreased by 8.9%, and the latest salary report has been released
期末复习(DAY7)
Can altaro back up Microsoft teams?
@Solutions to null pointer error caused by Autowired