GNU GRUB 启动菜单处按e而后编辑linux
linux /boot/vmlinuz-x.y.z-mm-generic root=UUID=[xxxxxxxxxxxxxxxxxxxx] ro quiet splash $vt_handoffbash
---->为:ui
linux /boot/vmlinuz-x.y.z-mm-generic root=UUID=[xxxxxxxxxxxxxxxxxxxx] rw init=/bin/bashspa
按F10 ,启动后无需密码获得root权限,而后passwd 用户名进行改密码it