0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

PW消失

Last updated at Posted at 2025-11-05

PW消失

Debianで遭遇したerrorの内winではなんともなかったもののDebianでは高確率で起こるインバータで接続後起動したまたは容量が足らずに起動した場合にPWが消失する。

復旧方法

GRUBの起動画面でeを押す。
Linuxの項目のquiet の後にspace init=/bin/bashを追記する。
ctrl+xを押してGRUB再起動しsingle recoveryで起動する。
passwdを使用してSuserのpwを変更。
このままSuserでログインできれば良いが難しい場合他のuserからのログインを考えて

例 passwd user1

でSuser以外のpwを変更しておく。
pw変更に際してmultiple errorがおおよそ出てくるので

mount -n -o remount,rw /

を入力後にpasswdを使用する。
キーボードの配列が変更されているので英数字で一旦pwを作成するのがわかりやすい。

ログイン

ログイン時にuser1 pwでログインし端末のSuserでは変更後のpwを使用する。

参照文献

https://tosi-tech.net/2013/10/forget-debian-password/
https://linux-jp.org/?p=1266
https://blog.trippyboy.com/2011/centos/ユーザパスワード確認方法/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?