Linux系统如何破解密码?
- Reboot the system.(重启系统)
- Interrupt the boot loader count down by pressing anykey.
- Move the cursor to the entry that needs to be booted.
- Press “e” to edit the select edentry.(按e进入编辑界面)
- Move the cursor to the kernel command line(the line that start swith linux16.(查找括号内的内容)
- Append rd.break.(其后加入rd.break)
- Press Ctrl+x to start.(按ctrl+x开始)
- Remount /sysroot as read-write.
输入:switch_root:/# mount -o remount,rw /sysroot(以读写方式重新挂载根下sysroot) - Switch into a chroot jail, where /sysroot is treated as the root of the filesystem tree
输入:switch_root:/# chroot /sysroot - Set a new root password:
输入:sh-4.2# passwd [root](改变root密码)
or
输入:sh-4.2# passwd -d root(删除root密码) - Make sure that all unlabeled files (including/etc/shadow at this point)get relabeled during boot.
输入:sh-4.2# touch /.autorelabel
文件创建 根目录 .autorelabel(标签文件) - sh-4.2# exit
- switch_root:/# exit
创作者:Eric· Charles