恢复Linux密码

合集下载

linux密码忘记 重置密码的方法

linux密码忘记 重置密码的方法

linux密码忘记重置密码的方法把统录码记失较遍一种象,在Linux系统中也经常会发生这样的情况,对于这种情况,Linux系统提供了一些有效的解决方案。

本文介绍了Linux系统如何重置密码的方法。

首先,我们需要准备一个可以访问Linux系统的Live CD或Live USB,这是重置Linux密码的基本条件。

可以使用Ubuntu、Mint等Linux发行版,将其安装在可移动存储设备上,例如U盘、CD等,这样,就可以进入Linux系统了。

接下来,准备好Live CD或Live USB后,我们就可以重启系统进入LiveCD/Live USB系统中。

当然,如果是在Live USB的系统中,那就不用重新启动系统了,只要将Live USB插入系统,然后重新启动系统即可。

当系统启动完成,进入Live CD/Live USB系统后,我们就可以使用root用户登录系统,以执行密码重置任务了。

要重置Linux系统的登录密码,我们可以使用passwd命令,只需要在终端中输入:#passwd username其中,username为需要重置密码的用户名。

运行passwd命令后,系统会提示输入两次新密码,完成输入后,新密码就已经生效了。

重置完毕后,我们就可以使用新密码登录Linux系统了。

另外,如果我们忘记了root登录密码,也可以使用上述方法重置,只是此时我们需要在LiveCD/Live USB系统中使用root用户登录,而不是普通用户登录。

重置Linux系统的密码,可以使用其它的方法,例如使用boot 命令,将系统重新启动,重新安装grub等,但是这种方法的操作过程比较复杂,而且容易导致系统安装目录损坏,所以在重置Linux系统的密码时,最好使用上述方法。

以上就是Linux系统重置密码的方法,只要我们准备好Live CD/Live USB,就可以重置Linux系统的密码。

然而,Linux系统重置密码并不是唯一的方法,也可以使用其它的方法,例如使用boot 命令,将系统重新启动,重新安装grub等,只是这种方法的操作过程比较复杂,而且容易导致系统安装目录损坏。

Linux怎么恢复root密码

Linux怎么恢复root密码

Linux怎么恢复root密码
Linux root用户是Linux系统的最高权限用户,一旦密码忘记将会带来很多的困扰,那么Linux怎么恢复root密码呢?下面店铺就为大家带来了Linux恢复root密码的方法。

Linux恢复root密码方法
1、重启Linux系统,看到如下界面时按下“e”键;
2、按下“e”键之后我们会看到下面这个界面,再次按下“e”键;
3、按完上一次“e”键后我们来到了下面这个界面,如果出现的和本图不一样,就找到有kerner字样的那一行,然后再次按下“e”键;
4、我们会进到如下这个页面,在quiet后面空一个格然后输入single;
5、完成之后敲回车(即Enter键)会回到如下所示的界面,在这个界面按下“b”;
6、随即我们会进到这么页面;
7、输入如下类容表示进行root密码的更改,我们可以看到提示了个update successfully表示修改成功,然后输入reboot重启,就会进入到用户登录界面,输入刚才修改的密码就可以登陆了;。

Red+Hat+Linux+root密码找回方法

Red+Hat+Linux+root密码找回方法

Red Hat Linux root密码找回方法如果你忘记了Red Hat Linux的root密码,你可以尝试以下方法来重置它:方法一:使用rd.break参数重置root密码1.启动系统,并在GRUB引导屏幕上按e键进行编辑。

2.在linux行末尾添加rd.break参数。

3.按Ctrl+x使用更改的参数引导系统。

4.将文件系统重新挂载为可写(switch_root:/# mount -o remount,rw/sysroot)5.更改文件系统的root(switch_root:/#chroot /sysroot)6.输入passwd命令,并按照命令行上显示的说明进行操作。

7.在下次系统引导时重新标记所有文件(sh-4.4# touch /.autorelabel)8.重新将文件系统挂载为只读(sh-4.4# mount -o remount,ro /)9.输入exit命令退出chroot环境。

10.再次输入exit命令,以恢复初始化并完成系统启动。

方法二:使用single模式重置root密码1.启动vm虚拟机,启动linux系统。

2.进入linux启动界面之后按e进入如下界面。

3.按选择kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ 项,按e键,然后“空格”输入“single”,回车。

4.按b键,进行引导,进入字符界面。

5.输入passwd root来修改root用户密码。

6.输入两次新密码,回车,显示修改成功。

7.输入reboot重启。

8.重启之后使用新密码就可以正常登陆了。

无论使用哪种方法,都可以帮助你重置Red Hat Linux的root密码。

请注意,重置root密码需要管理员权限,因此请确保你具备相应的权限和能力。

Linux系统密码忘记后的五种恢复方法

Linux系统密码忘记后的五种恢复方法
如果你既没做系统启动软盘,同时多系统的引导LILO和GRUB又被删除,
那么只能使用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
是/etc/passwd密码文件的投影文件。
tips:感谢大家的阅读,本文由我司收集整编。仅供参阅!
五、卸下硬盘挂到别的机器上更改
如果不怕麻烦的话,还可以把安装linux的硬盘卸下后挂到其他系统环境下
同样是去修改/etc/passwd文件,修改过后保存即可;
注:
1、在不同的linux系统下输入single的方式和方法可能有区别,希望能自己
去尝试;
2、除了需要修改/etc/passwd文件外,可能也需要修改/etc/shadow文件,这

linux7密码忘记 重置密码的方法

linux7密码忘记 重置密码的方法

linux7密码忘记重置密码的方法(最新版3篇)《linux7密码忘记重置密码的方法》篇1如果您忘记了Linux 7 的密码,您可以使用以下方法之一来重置它:1. 使用单用户模式:在启动时选择单用户模式,以root 用户身份登录后进行更改。

您可以通过在Grub 菜单中选择第二行(带有“linux”或“linux16”的行)并按“e”键进入编辑模式来进入单用户模式。

在编辑模式中,找到“linux”或“linux16”行,并在其末尾添加“rw init=/bin/bash”。

按“Ctrl+X”或“F10”键启动并进入单用户模式。

在单用户模式下,您可以使用passwd 命令更改密码。

2. 使用Live CD:使用Linux 7 的Live CD 或USB 驱动器来引导系统,并在其中运行passwd 命令来更改密码。

您可以使用此方法来重置密码,而无需进入单用户模式。

3. 重置密码:如果您无法使用上述方法,您可以尝试使用密码重置工具,例如chntpw、PasswdRescueCD 或PhotoRec 等。

这些工具可以在Linux 7 系统上运行,并且可以帮助您重置密码。

请注意,更改密码可能会对系统安全造成影响。

《linux7密码忘记重置密码的方法》篇2如果您忘记了Linux 7 的密码,您可以使用以下方法来重置它:1. 重启计算机,在Grub 菜单出现时,按下键盘上的“e”键,进入编辑模式。

2. 在编辑模式中,找到以“linux”或“linux16”开头的行,并在其末尾添加“rw init=/bin/bash”。

例如,如果您的行是以“linux16”开头的,则应将其更改为:linux16 /vmlinuz-3.13.0-32-686-pae root=/dev/mapper/centos-root ro rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet rwinit=/bin/bash3. 按下Ctrl+X 或F10 键,启动计算机并进入单用户模式。

各类Unix和Linux密码丢失解决方法

各类Unix和Linux密码丢失解决方法

各类Unix和Linux密码丢失解决方法一、SolarisROOT密码遗忘的处理方法1.如果还能用普通用户登陆的话,%df /etc,确定包含/etc目录分区的设备名。

%df /etc/ /dev/dsk/c0t0d0s0...此例中是c0t0d0s0,如果你的根目录分区设备不一样的话,替换一下就可以。

2.把系统盘插入cdrom中。

3.出现提示符后,使用sync命令刷新文件系统。

4.按下stop+A。

5.”ok”状态下键入boot cdrom -s。

6.在”#”提示符下键入mkdir /temp ,然后键入mount /dev/dsk/c0t0d0s0 /temp。

如果出现挂接不上的情况时,那么就运行fsck先fsck /dev/rdsk/c0t0d0s0,然后在mount。

7.cd /temp/etc。

8.cp shadow shadowbak。

9.cat shadow得到root的口令字符串root:djglcj0J:6453::::(其中djglcj0J就是root的加密后的口令字符串)10.sed s/djglcj0J// shadow>shadownew。

11.cat shadownew查看是否已经变为。

root::6453::::12.cp shadownew shadow。

13.cd /unmount /tempsyncshutdown -i0 -g0 -y14.取出CD后,重起系统,这时root就不需要密码啦!这样也可以!OK boot cdrom -s#TERM=sun#export TERM#mount /dev/dsk/c0t0d0s0 /a#vi /a/etc/shadow(删除root的加密后的密码)#reboot二、恢复SCO UNIX超级用户口令一旦运行SCO UNIX 机器的超级用户口令忘了,可以用这个方法解决。

在另一台安装了SCO UNIX的机器上,以Root用户注册,进入系统,用mkdev fd命令或命令scoadmin中的Filesystem之Floppy Filesystem Manager来制作应急启动盘,包括Boottable 盘和Root filesystem盘。

Linux下如何修改root密码以及找回root密码

Linux下如何修改root密码以及找回root密码Linux下修改root密码⽅法以root⾝份登陆,执⾏:passwd ⽤户名然后根据提⽰,输⼊新密码,再次输⼊新密码,系统会提⽰成功修改密码。

具体⽰例如下:[root@www ~]# passwd rootChanging password for user root.New UNIX password:BAD PASSWORD: it is based on a dictionary wordRetype new UNIX password:passwd: all authentication tokens updated successfully.Linux下添加新⽤户的命令useradd ⽤户名Linux下root密码找回⽅法Linux的root享有⾄⾼⽆上的权⼒,⼀旦root密码忘记或者被盗,是⼀件⾮常头痛的事情,那么怎么样才能找回root的密码呢?本⼈把其总结如下:(⼀)Linux 系统密码破解1. 在grub选项菜单按e进⼊编辑模式2. 编辑kernel那⾏ /init 1 (或/single)3. 按B重启4. 进⼊后执⾏下列命令root@#passwd root (配置root的密码)Enter new unix password:输⼊新的密码root@#init 6(⼆)Debian linux 系统密码破解1. 在grub选项菜单’Debian GNU/Linux,…(recovery mode)’,按e进⼊编辑模式2. 编辑kernel那⾏⾯的 ro single 改成 rw single init=/bin/bash,按b执⾏重启3. 进⼊后执⾏下列命令root@(none)#mount -aroot@(none)#passwd rootroot@(none)#reboot(三)FreeBSD 系统密码破解1. 开机进⼊引导菜单2. 选择每项(按4)进⼊单⽤户模式3. 进⼊之后输⼊⼀列命令root@#mount -aroot@#fsck -yroot@#passwd(修改密码命令)root@#root(要破解密码的⽤户名)Enter new unix password:root@#init 6 (重启)(四)Solaris 系统密码破解 1. 在grub选项菜中选择solaris failasfe 项2. 系统提⽰Do you wish to have it mounted read-write on /a ?[y,n,?] 选择y3. 就进⼊单⽤户模式4. 输⼊下列命令#passwd#New passwd:输⼊新的密码#Re-enter New passwd:在次输⼊新的密码#init 6 (重启) (五)NetBsd 系统密码破解1.开机:当出现提⽰符号并开始倒数五秒时, 键⼊以下指令:> boot -s (进⼊单⽤户模式命令)2.在以下的提⽰符号中Enter pathname of shell or RETURN for sh:按下 Enter.3.键⼊以下指令:# mount -a# fsck -y4.使⽤ passwd 更改 root 的密码.5.使⽤ exit 指令进⼊多⼈模式.(六)debian linux系统密码破解1. 在Grub的引导装载程序菜单上,选择你要进⼊的条⽬,键⼊ “e” 来进⼊编辑模式;2. 在第⼆⾏(类似于kernel /vmlinuz-2.6.15 ro root=/dev/hda2 ),键⼊”e”进⼊编辑模式;3. 在句末加上”init=/bin/bash”,回车;4. 按“b”启动系统.这样我们即可获得⼀个bash的Shell,进⼊shell后,根分区的挂载模式默认是只读,我们要将其改为可写,否则不能更改root密码:mount -no remount,rw /passwd rootsyncmount -no remount,ro /reboot这样即可成功更改debian的root⽤户的密码.(七)1.在启动linux的时候按Ctrl X,在bash#提⽰符下输⼊linux single 或 linux 1,然后在bash# 输⼊ passwd root 就可以更改密码了! 设置完后#init 6 重启 OK.2.在启动linux的时候按Ctrl X,在bash#提⽰符下输⼊:vi etcpasswd,找到root,把⾥⾯的root:x:….的“x”删掉.就删除了密码!(⼋)⼀、关于lilo1. 在出现 lilo: 提⽰时键⼊ linux single 画⾯显⽰ lilo: linux single2. 回车可直接进⼊linux命令⾏3. ⽤password命令修改密码⼆、关于 grub1. 在出现grub画⾯时,⽤上下键选中你平时启动linux的那⼀项,然后按e键2. 再次⽤上下键选中你平时启动linux的那⼀项(类似于kernel/boot/vmlinuz-2.4.18-14 ro root=LABEL=/),然后按e键3. 修改你现在见到的命令⾏,加⼊single,结果如下:kernel /boot/vmlinuz-2.4.18-14 single ro root=LABEL=/ single4. 回车返回,然后按b键启动,即可直接进⼊linux命令⾏5. ⽤password命令修改密码(九)1. 把系统安装光盘插⼊,重启机器,启动时迅速按下Del键,进⼊CMOS,把启动顺序改为光盘先启动,这样就启动了Linux安装程序,按F5,按提⽰打⼊Linuxrescue回车,进⼊救援模式,接下来是选择语⾔及键盘,直接回车即可,程序提⽰已经把硬盘上的Linux系统安装到了/mnt/sysimage下,然后出现了超级⽤户提⽰符#.2. 进⼊到硬盘etc⽬录下:cd/mnt/sysimage/etc,先做备份防不测:cpshadowshadow.old修改shadow⽂件的属性为可写:chmod wshadow然后⽤vi修改之:找到含root⽤户信息的那⼀⾏:root:….:,前两个冒号之间就是加密的密码,把它删除掉(冒号不能删),存盘退出.这样root的密码就为空了.3. 不会⽤vi的⽤户可以采取如下⽅法:找⼀张DOS盘插⼊软驱,把Shadow拷贝到DOS盘上:mcopyshadowa:/然后在Windows下⽤附件中的记事本修改之,注意打开⽂件类型⼀定要选所有⽂件(*.*),存盘退出.再拷回:mcopya:/shadowmnt/sysimage/etc4. 把Shadow的属性改回只读:chmod-wshadow,输⼊Exit退出,取出光盘.为安全起见,重启后应在终端窗⼝中再给root加上密.。

linux密码忘记重置密码的方法

linux密码忘记重置密码的方法Forgetting the password to your Linux system can be quite frustrating, but don't worry, there are several methods you can use to reset it. In this article, we will explore different approaches to help you regain access to your Linux system when you forget your password.One of the most common methods to reset a forgotten Linux password is by using the single-user mode. To access single-user mode, you need to reboot your system and interrupt the boot process. Once you reach the GRUB menu, select the kernel you want to boot into and press the "e" key. This will allow you to edit the boot parameters. Find the line that starts with "linux" or "linux16" and append "single" or "init=/bin/bash" at the end of the line. Press "Ctrl + X" or "F10" to boot into single-user mode. From there, you can use the "passwd" command to reset your password.Another method to reset a Linux password is by using abootable USB or DVD with a Linux distribution. Start by creating a bootable USB or DVD with a Linux distribution of your choice. Once you have the bootable media, insert it into your computer and boot from it. When the Linux distribution's live environment loads, open a terminal and navigate to the root partition of your Linux installation. From there, you can use the "chroot" command to change the root directory to your Linux installation. Once you are in the chroot environment, use the "passwd" command to reset your password.If you don't have access to a bootable USB or DVD, you can still reset your Linux password by modifying the boot parameters from the GRUB menu. Similar to the single-user mode method, interrupt the boot process and select the kernel you want to boot into. Instead of editing the boot parameters, press the "e" key to edit the selected entry. Find the line that starts with "linux" or "linux16" and append "rw init=/bin/bash" at the end of the line. Press "Ctrl + X" or "F10" to boot into a root shell. From there, you can use the "passwd" command to reset your password.In case the above methods don't work for you, you can still reset your Linux password by using a password reset disk. A password reset disk is a file that contains the necessary information to reset your password. To create a password reset disk, you need to have access to another Linux system or a Windows system with a Linux filesystem driver. Once you have the required system, open a terminal and use the "chntpw" command to create the password reset disk. Then, boot your Linux system and select the "Reset Password" option. Follow the on-screen instructions to reset your password.If all else fails, you can resort to using a Linux system rescue disk. A system rescue disk is a bootable media that contains a collection of tools and utilities to help you recover and repair your Linux system. To use a system rescue disk to reset your password, you need to create a bootable USB or DVD with a system rescue disk of your choice. Once you have the bootable media, insert it into your computer and boot from it. When the system rescue disk loads, you can use the included password reset tools to reset your Linux password.In conclusion, forgetting your Linux password can be a frustrating experience, but there are several methods you can use to reset it. Whether it's through single-user mode, using a bootable USB or DVD, modifying the boot parameters, using a password reset disk, or a system rescue disk, you have options to regain access to your Linux system. Remember to always keep a backup of your important data and be cautious when resetting passwords to ensure the security of your system.。

linux系统root密码忘了怎么办三种方法快速找回root密码

linux系统root密码忘了怎么办三种⽅法快速找回root密码linux root密码找回⽅法⼀ 第1步:在系统进⼊单⽤户状态,直接⽤passwd root去更改。

第2步:⽤安装光盘引导系统,进⾏linux rescue状态,将原来/分区挂接上来,作法如下: cd /mnt mkdir hd mount -t auto /dev/hdaX(原来/分区所在的分区号) hd cd hd chroot ./ passwd root 第3步:将本机的硬盘拿下来,挂到其他的linux系统上,采⽤的办法与第⼆种相同. linux root密码找回⽅法⼆ 第1步:⽤lilo引导系统时:在出现 lilo: 提⽰时键⼊ linux single 画⾯显⽰lilo: linux single 第2步:回车可直接进⼊linux命令⾏ 第3步:使⽤以下命令“vi /etc/shadow”将第⼀⾏,即以root开头的⼀⾏中root:后和下⼀个:前的内容删除,第⼀⾏将类似于root::......保存 vi /etc/shadow 第4步:reboot重启,root密码为空。

linux root密码找回⽅法三 第1步:⽤grub引导系统时:在出现grub画⾯时,⽤上下键选中你平时启动linux的那⼀项(别选dos哟),然后按e键 第2步:再次⽤上下键选中你平时启动linux的那⼀项(类似于kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/),然后按e键 第3步:修改你现在见到的命令⾏,加⼊single,结果如下: kernel /boot/vmlinuz-2.4.18-14 single ro root=LABEL=/ single 第4步:回车返回,然后按b键启动,即可直接进⼊linux命令⾏. 第5步:使⽤以下命令“vi /etc/shadow”将第⼀⾏,即以root开头的⼀⾏中root:后和下⼀个:前的内容删除,第⼀⾏将类似于root::......保存 vi /etc/shadow 第6步:reboot重启,root密码为空。

linux忘记登陆密码如何解决

Linux上用户密码忘记了怎么办?
step_1:启动虚拟机,出现下面的倒计时界面时,按键盘上的e键. (说明:要确保光标此时已经在虚拟机内了,要不然,按了e键,也是在windows内,无效。

e代表edit,启动前编辑)
step_2:进入如下后界面,再按e键
step_3:进入如下界面后,使用键盘上的上下键,选中第二项以kernel 开头的项。

选中后,再次按e键
step_4:进入以下界面后,在最后面输入空格和s,然后回车。

(注意:有的系统显示的内容可能和我下面出现的这一行不一样,没关系,直接加空格和s就行,不影响的;也就说什么呢,只要进入到这个页面,直接加空格和s,不要管他显示的是什么;)
step_5:接着会回到如下界面,然后按下b键(b代表boot启动)
step_6:进入如下界面:
step_7:此时输入passwd root回车,
step_8:输入密码,回车,确认密码,回车,输入reboot,回车;
step_9:最后就可以使用新密码登录了。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1、今天在启动好久未用的服务器时,发现将root密码给忘记了,经上网搜索资料使用如下方法重设root 密码:
在出现系统选择界面时,在Cent OS的menu选项上按“e”键,然后会出现三个选项,在第二项类似“ kernel /boot/vmlinuz-2.6.18-164.e15 ro root=LABEL=/”上按“e”键进行编辑,在“ro”与“root”间输入“single”,然后回车返回.按“b”键启动,进入字符界面,当出现“sh-3.2#”的字样时,就意味着已经进
入单用户模式.现在,输入“passwd root”,就可以重新设置root密码了.设置完成后,reboot重启,用刚才
设置的密码就可以进入linux系统了.
2、进入grub后有下面三行或四行:
root (hd0,0)
kernel /xen.gz-2.6.18-164.el5
module /vmlinuz-2.6.18-164.el5xen ro root=LABEL=/ rhgb quiet
module /initrd-2.6.18-164.el5xen.img
你选择下面这行:
module /vmlinuz-2.6.18-164.el5xen ro root=LABEL=/ rhgb quiet
在后面加个1,如:
module /vmlinuz-2.6.18-164.el5xen ro root=LABEL=/ rhgb quiet 1
按ESC退到上一步,再按b
就可以进入单用户模式改密码了。

3、使用Linux系统安装盘
如果你既没做系统启动软盘,同时多系统的引导LILO和GRUB又被删除,那么只能使用Linux 系统安装盘来实现Linux密码恢复技术。

用第一张Linux系统安装盘启动,出现boot提示符后输入:
root inux rescue
此时系统进入救援模式,然后根据提示完成:
1.选择语言和键盘格式;
2.选择是否配置网卡,一般系统因网络不需要,所以可以选择否跳过网卡配置;
3.选择是否让系统查找硬盘上的RedhatLinux系统,选择继续;
4.系统显示硬盘上的系统已经被找到,并挂载在/mnt/sysimage下;
5.进入拯救状态,可重新设置root的密码:
#chroot /mnt/sysimage(让系统成为根环境)
#passwd root
4、Linux的服务器,现在密码给忘记
(一)Linux 系统密码破解
1.在grub选项菜单按E进入编辑模式
2.编辑kernel那行 /init 1 (或/single)
3.按B重启
4.进入后执行下列命令
root@#passwd root (设置root的密码)
Enter new unix password:输入新的密码
root@#init 6
(二)debian linux 系统密码破解
1.在grub选项菜单'Debian GNU/Linux,...(recovery mode)',按e进入编辑模式
2.编辑kernel那行最后面的 ro single 改成 rw single init=/bin/bash,按b执行重启
3.进入后执行下列命令
root@(none)#mount -a
root@(none)#passwd root
root@(none)#reboot
(三)Freebsd 系统密码破解
1.开机进入引导菜单
2.选择每项(按4)进入单用户模式
3.进入之后输入一列命令
root@#mount -a
root@#fsck -y
root@#passwd(修改密码命令)
root@#root(要破解密码的用户名)
Enter new unix password:
root@#init 6 (重启)
(四)Solaris 系统密码破解
1.在grub选项菜中选择solaris failasfe 项
2.系统提示Do you wish to have it mounted read-write on /a ?[y,n,?] 选择y
3.就进入单用户模式
4.输入下列命令
#passwd
#New passwd:输入新的密码
#Re-enter New passwd:在次输入新的密码
#init 6 (重启)
(五)NetBsd 系统密码破解
1.开机:当出现提示符号并开始倒数五秒时,键入以下指令:
> boot -s (进入单用户模式命令)
2.在以下的提示符号中
Enter pathname of shell or RETURN for sh:
按下 Enter。

3.键入以下指令:
# mount -a
# fsck -y
4.使用 passwd 更改 root 的密码。

5.使用 exit 指令进入多人模式。

相关文档
最新文档