首页 > 代码库 > redhat Linux 7 破解root密码
redhat Linux 7 破解root密码
If you have lost or forgot root password of RHEL7, you can follow this step to change to a new password, this is different with the RHEL6 single-usermode,
1, press e button in GRUB 2 boot screen.
2, at the end of Linux line add init=/bin/sh and remove ‘rhgb‘ and ‘quiet‘
3, Ctrl+x to boot the system with the parameter
4, remount the file system as writable, run the mount -o remount, rw / command
5, passwd to change password.
6, make sure SELinux context of the files that were modified is restored, touch /.autorelabel
7, last step, resume the initialization and finish the system boot. exec /sbin/ini
本文出自 “挨踢人物” 博客,请务必保留此出处http://maguang.blog.51cto.com/6695561/1579619
redhat Linux 7 破解root密码
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。