Linux忘記密碼

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

相關文章
相關標籤/搜索