Linux forget password root - xiuyanduan/xiuyanduan.github.io GitHub Wiki

title: Linux forget password of root
date: 2016-02-24
tags:
- linux
- ubuntu
- root
---

Ubuntu

Advanced options for Ubuntu

Advanced options for Ubuntu

recovery mode

press 'e' recovery mode

change recovery nomodeset to single init=/bin/bash

recovery nomodeset single init=/bin/bash

remount

  1. mount mount
  2. mount -o remount, rw /
  3. mount
  4. passwd remount

Other reference

鸟哥的Linux私房菜 centos