码迷,mamicode.com
首页 > 其他好文 > 详细

How to recover the root password in Centos 6 ?

时间:2016-04-03 07:50:57      阅读:345      评论:0      收藏:0      [点我收藏+]

标签:root;centos

How to recover root password in Centos 6 ?



How to recover the root password ?


1) Press ‘ E ‘ when starting the server.


技术分享


2) Select Kernel followed by pressing ‘ E ‘ to edit the commands.


技术分享

技术分享


3) Add ‘single‘ or ‘1‘ then press enter.


技术分享


4) Press " B " to boot server with single user mode.



技术分享

技术分享



5) Use command ‘passwd root‘ to change the root password.


技术分享


6) Use command ‘reboot‘ to reboot server.




本文出自 “Avaya” 博客,请务必保留此出处http://avaya.blog.51cto.com/4259683/1759541

How to recover the root password in Centos 6 ?

标签:root;centos

原文地址:http://avaya.blog.51cto.com/4259683/1759541

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!