- 开机按Esc,进入GRUB
- 选择*Advanced options for Ubuntu
- 选择*Ubuntu,with Linux 4.15.0-20-generic(recovery mode)
- 选择root drop to root shell promt
- mount -o remount,rw /ect
- chattr -i ect/passwd
- lasttr -v erc/passwd
- passwd
- 输入新密码
- 再次输入新密码
- passwd: password updated successfully