立即注册 登录
雏鹰部落 返回首页

lin0131的个人空间 https://bbs.spoto.net/?123151 [收藏] [复制] [分享] [RSS]

日志

Reset Red Hat password

已有 421 次阅读2012-8-2 11:27 |个人分类:tech| single, next, following, password, because

Resetting forgotten root password on Centos/Red Hat
If you are desperate because you have forgotten root password, don’t be. This tutorial will show you how to reset root.
Boot the system and when you see the following screen, press any key


At the following screen, press e

It will take you the following screen

Highlight the line with vmlinuz in it by using the arrow keys and press e. The next screen will look like below

Now type single or init 1 at the very end of the line so.

Then press enter and b to boot the system with the new argument
The system will boot into single user mode and you will see bash prompt like below

Now change the password
Passwd                              
Enter new UNIX password:            
Retype new UNIX password:           
passwd: password **d successfully
type in the new password and then reboot
reboot                              
to restart the system.

 已同步至 lin0131的微博

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 立即注册

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-5-7 04:06 , Processed in 0.056946 second(s), 19 queries , Gzip On.

返回顶部