Reset root password for vm virtual machine CentOS 7 system
首先,启动CentOS 7系统,在选择进入系统的界面按 “e” 进入编辑页面。
往下滑,找到 “linux16” 开头的那一段,在最后添加 “ init=/bin/sh”
按 “ctrl+X” 组合键进入单用户模式
- 输入“mount -o remount,rw /”,然后再输入 “passwd”,回车
- 输入两次要修改的密码
- 输入 “touch /.autorelabel”,回车
- 输入 “exec /sbin/init”,回车
912sy.com download resources are from the network, only for learning and reference use, the copyright belongs to the original author, do not use for commercial purposes, please remove yourself within 24 hours after downloading.
If the content published on this site inadvertently violates your rights and interests, please contact us and the site will be deleted within one business day.If you encounter any problems please contact customer service QQ:2385367137
912sy " Reset root password for vm virtual machine CentOS 7 system
If the content published on this site inadvertently violates your rights and interests, please contact us and the site will be deleted within one business day.If you encounter any problems please contact customer service QQ:2385367137
912sy " Reset root password for vm virtual machine CentOS 7 system