当前位置:网站首页>redhat7 破解(重置)root密码
redhat7 破解(重置)root密码
2022-06-09 08:44:00 【刘大大__】
破解(重置)root密码
重置系统root账户密码为thuctive,确保能够使用root登录。
1.开机(或重启)出现grub菜单时按任意键终止启动过程,在内存中编辑GRUB加载的条目 ,
使其在内核刚挂载所有文件系统后,但在将控制权移交给systemd前终止启动过程。

2.按e键编辑GRUB当前条目,找到Linux这一行,按End键到行尾,将rd.break附加到行尾,
然后按Ctrl+x引导系统,若存在下图中被黄色框选中的内容,请务必删除掉。

3.重置root密码
①mount -o remount,rw /sysroot/
②chroot /sysroot
③echo “thuctive”|passwd --stdin root
④touch /.autorelabel
⑤ exit
⑥exit
然后会进入到SELinux自动重新打标签的界面,
时间取决于系统文件的多少和机器性能,一定要等它把标签打完自然重启。
4.打完SELinux标签,正常启动到登录界面,使用新密码thuctive登录成功。
边栏推荐
- SSM implements selected deletion
- SQL: 合作过至少三次的演员和导演
- Summary of string inversion methods
- Use of extensions and super
- Virtual machine installation and configuration
- 【无标题】
- Remote prepayment management system helps property management solve the problem of difficult charging and statistics
- Configuring the environment for RMAN backups_ Configure the deletion policy for archived redo logs
- RMAN backup concept_ About multiple copies of RMAN backups
- 配置RMAN备份的环境_配置控制文件和服务器参数文件的自动备份
猜你喜欢

Shared network port settings for Dell Idrac express version

模拟面试策划书;校园模拟面试策划书;求职模拟面试大赛策划书;经管学院模拟求职大赛策划书;大学生模拟面试大赛策划书

阿里云IOT

安装mysql保姆级教程

汇编_常用指令

SQL:锦标赛优胜者

編輯器說明-備用

The fire door monitoring system carries out 24-hour real-time automatic inspection on the status of the fire door

The energy efficiency management platform of the microgrid of the company promotes the upgrading of the power grid to the energy Internet

Cleaning data ---2022/06/08
随机推荐
Update and delete operations in Clickhouse of data warehouse series
Oracle locally managed tablespaces
SQL: 重新格式化部门表 (行转列问题:Group by + 聚合函数)
RMAN backup concept_ About multiple copies of RMAN backups
Remote prepayment management system helps property management solve the problem of difficult charging and statistics
Anatomy of illusory rendering system (15) - XR topic
shellcode编写
JS realizes three-level linkage
The integrated monitoring system of ankerui distribution room realizes the online monitoring of the environment in the distribution room and ensures the safe operation of the equipment in the distribu
Sql: actors and directors who have cooperated at least three times
3D编程模式:依赖隔离模式
华为机试,HJ6质数因子
Modify campaign table
Virtual machine installation and configuration
Introduction to framework: the update expression is invalid. At least one column must be updated
Clickhouse data type sorting of system operation and maintenance series
About Eigendecomposition
安科瑞Acrel-BUS智能照明控制系统在医院的应用
[untitled]
修改pe程序入口点