Linux系统密码破解教程

破解密码
1.Reboot the system.
2.Interrupt the boot loader count down by pressing anykey.
3.Move the cursor to the entry that needs to be booted.
4.Press “e” to edit the select edentry.
5.Move the cursor to the kernel command line(the line that start swith linux16.
6.Append rd.break
7.Press Ctrl+x to start.
8.Remount /sysroot as read-write.
switch_root:/# mount -o remount,rw /sysroot

9.Switch into a chroot jail, where /sysroot is treated as the root of the filesystem tree
switch_root:/# chroot /sysroot
10.Set a new root password:
sh-4.2# passwd [root] (change the root password)
or
sh-4.2# passwd -d root (delete the root password)
11.Make sure that all unlabeled files (including/etc/shadow at this point)get relabeled during boot.
sh-4.2# touch /.autorelabel
12. sh-4.2# exit
13. switch_root:/# exit

破解root密码:
1、重启虚拟机,按“E”执行第二行

在这里插入图片描述
2、在linux16末尾加上 rd.break,ctrl+x执行

在这里插入图片描述

在这里插入图片描述
3、输入mount -o remount,rw /sysroot
4、输入chroot /sysroot

在这里插入图片描述
5、之后输入 passwd root 进行更改
6、输入新密码:
7、确认密码
8、touch /.autorelabel
9、exit
10、exit
重启:reboot
关机:shutdown -h now,poweroff

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Linux是一种自由和开放源代码的操作系统,使用广泛,尤其在服务器领域。以下是Linux系统基础入门教程: 1. Linux系统安装 首先需要选择合适的Linux发行版,如Ubuntu、Debian、CentOS等。然后下载并安装相应的ISO镜像文件,通过光盘或U盘启动电脑安装Linux系统。 2. 常用命令 Linux系统的命令行非常强大,学习常用命令可以提高工作效率。例如: - cd:切换目录 - ls:列出目录内容 - mkdir:创建目录 - rm:删除文件或目录 - cp:复制文件或目录 - mv:移动或重命名文件或目录 - cat:查看文件内容 - grep:查找文件中的文本 - chmod:修改文件权限 - chown:修改文件所有者 3. 文件系统 Linux系统采用了树形结构的文件系统,根目录为/。其他目录按照功能分配,例如/bin存放系统可执行文件,/etc存放配置文件,/home存放用户目录,/var存放变化的文件等。 4. 用户管理 Linux系统支持多用户同时登录,需要进行用户管理。例如: - useradd:添加用户 - passwd:修改用户密码 - userdel:删除用户 - usermod:修改用户属性 5. 软件包管理 Linux系统的软件包管理非常方便,可以通过包管理器安装、更新、删除软件包。例如: - apt-get:Debian系列系统的包管理器 - yum:Red Hat系列系统的包管理器 - pacman:Arch Linux的包管理器 以上是Linux系统基础入门教程的一些内容,希望对你有所帮助。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值