RedHat Linux 9忘记root密码
来源:互联网 发布:上海中级职称软件 编辑:程序博客网 时间:2024/06/05 21:56
救命!我忘了我的root口令。现在我该怎么登录?
你可以使用单用户 Linux 模式来登录,然后创建一个新的root口令。
要进入单用户模式,重新引导计算机。如果你使用的是默认的引导装载程序 GRUB ,你可以执行下列步骤来进入单用户模式:
在引导装载程序菜单上,键入 [e] 来进入编辑模式。
你会面对一个引导项目列表。查找其中类似以下输出的那一行:
kernel /vmlinuz-2.4.18-0.4 ro root=/dev/hda2
按箭头键直到这一行被突出显示,然后按 [e] 。
按一下空格键来添加一个空格,然后添加 single 来通知 GRUB 引导单用户 Linux 模式。按 [Enter] 键来使编辑结果生效。
你会被带回编辑模式屏幕,从这里,按 [b] ,GRUB 就会引导单用户 Linux 模式。载入结束后,你会面对一个类似以下的 shell 提示:
sh-2.05#
现在,你便可以改变root命令,键入:
sh-2.05# passwd root
密码不会显示,输完后按回车。你会被要求重新键入口令来校验。结束后,口令就会被改变,你便可以在提示下键入 reboot 来重新引导;然后,象平常一样登录为根用户。
二、使用Linux 系统安装盘
如果你既没做系统启动软盘,同时多系统的引导LILO 和GRUB 又被删除(如重装了Windows 系统后),那么只能使用Linux 系统安装盘来恢复root 的密码。
用第一张Linux 系统安装盘启动,出现boot 提示符后输入:
oot: linux rescue
此时系统进入救援模式,然后根据提示完成:
1.选择语言和键盘格式;
2.选择是否配置网卡,一般系统因网络不需要,所以可以选择否跳过网卡配置;
3 . 选择是否让系统查找硬盘上的Redhat Linux 系统,选择继续;
4.系统显示硬盘上的系统已经被找到,并挂载在/mnt/sysimage 下;
5.进入拯救状态,可重新设置root 的密码:
# chroot/mnt/sysimage (让系统成为根环境)
# cd /mnt/sysimage
# passwd root
- RedHat Linux 9忘记root密码
- RedHat Linux 9忘记root密码
- 忘记redhat linux root密码怎么办
- 忘记redhat linux root密码解决方法
- redhat忘记root密码
- Linux(Redhat) 忘记root用户密码,重设root密码。
- redhat 9.0忘记root密码
- REDHAT LINUX 单用户模式启动(可以防止忘记root密码)
- ubuntu9.0.4忘记root密码redhat fedora忘记root密码
- Linux 忘记root密码
- linux忘记root密码
- Linux 忘记root密码
- 忘记 linux root密码
- Linux忘记root密码
- Linux忘记Root密码
- 忘记 linux root密码
- linux忘记root密码
- Linux 忘记root密码
- 深度剖析消息反射机制
- 关于 计算机图形学的
- 断电重启、虚拟机出现提示:This virtual machine appears to be used
- 比尔·盖茨(Bill Gates)
- IIS 安全事件 审核解读
- RedHat Linux 9忘记root密码
- SQl 语句(常见) 新建,删除,修改表结构(转载)
- 界面优化
- 秋天的牢骚
- Lazy Initialization and the DAO pattern with Hibernate and Spring(1)
- IBM AIX 000-107最新考题--Testinside 180元起
- poj 2084
- Ext 向Ext.form.ComboBox()中添加列表的分类
- Lazy Initialization and the DAO pattern with Hibernate and Spring (2)