Skip navigation.

exploreopera

| Help

Sign up | Help

鑫毅的Blog

CSS layout in China

linux忘记密码的问题; 更改root账户密码

1.grub引导下按"e" 进入编辑模式
2.然后选择第二项(一般都是kernel/vmlinuz-2.6。15or.root/dev/******* ) 按"e" 进入编辑模式 然后在后面
输入 “init=bin/bash"回车 然后按b重新启动
3进入编辑bash模式 输入:
mount -no remount,rw / 改为write 否者设置不了
passwd root 更改账户root
******(输入root密码) 设置密码
mount -no remount,ro / 把bash改回默认的模式
reboot(或者init 1) 重新启动

推荐新歌ubuntu 源地址

Comments

avatar
我没用过那个哈!也就不懂哈!

By xiatianyuxian, # 26. April 2007, 07:37:49

avatar
慢慢学就懂了,要有个学习的过程! 加油!

By fxy, # 29. April 2007, 03:19:12

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Please type this security code : eb7c8f

Smilies

September 2008
SMTWTFS
August 2008October 2008
123456
78910111213
14151617181920
21222324252627
282930