問題 一度パスワードを作ったlinuxユーザーを、パスワードでログインできないようにしたい。 ユーザーを作った初期状態みたいな、パスワードなしのログインできない状態にすることは可能? 答え man passwd によると、 -d This is a quick way to delete a password for an account. It will set the named account passwordless. Available to root only. アカウントのパスワードを削除するには -d オプションが簡単。そのアカウント名をパスワードなしにします。rootからしか利用できなくなります。 実行してみると、こうなる。 # passwd -d yoshimura Removing password for user yoshimura. passwd: Succes
![【linux】ユーザーのパスワードを無効にする、空にする at softelメモ](https://cdn-ak-scissors.b.st-hatena.com/image/square/1547f4b97eb50bd09e99d5f897a6c447ee41f867/height=288;version=1;width=512/https%3A%2F%2Fwww.softel.co.jp%2Fblogs%2Ftech%2Ffb.png)