对于Redhat7系统,如果把root用户密码忘了的话,需要重新设置root密码,其步骤如下:
1、系统启动时,按e进入命令行界面
2、在linux16行后加init=/bin/sh,去掉rhgb和quiet参数
3、mount -o remount,rw /
4、通过passwd修改root用户密码
5、touch /.autorelabel
6、exec /sbin/init
忘了root用户密码后,修改root密码方法
猜你喜欢
转载自daizj.iteye.com/blog/2383891
今日推荐
周排行