Linux NAS 箱などの /etc/shadow に保存されているパスワードがわからくなったときの手段。
- HDD を取り外して Linux (PC) に接続 (mount)
- python3 でハッシュを作る
- mount したパーティションにある /etc/shadow を編集
python3 によるパスワード ハッシュ生成
$ python3
>>> import crypt
>>> crypt.crypt('<password>', crypt.mksalt())
'$.$..$...'
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
Linux NAS 箱などの /etc/shadow に保存されているパスワードがわからくなったときの手段。
python3 によるパスワード ハッシュ生成
$ python3
>>> import crypt
>>> crypt.crypt('<password>', crypt.mksalt())
'$.$..$...'
Register as a new user and use Qiita more conveniently
Go to list of users who liked