How to reset password for unknow root

1. Click "e" when entering the grub

2. Add option " init=/bin/sh" to linux line. (/bin/sh can not be replace by /bin/bash , /bin/bash do not have passwd command)

3.Mount path (mount -o remount, rw /)

4.Change permission of passwd (chmod -v 4711 /usr/bin/passwd)

5.passwd root to change password

6.reboot target

上一篇:java并发:线程同步机制之CyclicBarrier


下一篇:[WPF学习笔记]动态加载XAML