LoginSignup
3
4

More than 5 years have passed since last update.

Linuxのユーザパスワードをコマンドラインで設定

Posted at

Linuxのユーザパスワード

1行Tipsです。
Linuxでユーザにパスワードを設定する時、毎回パスワードを2回入力しなくてはならなくて面倒 & 入力が表示されなくてタイプミスがわかりづらいですが、以下のコマンド一発でパスワードを設定できます。

sudo echo "p@ssw0rd" | passwd --stdin user01

2017-02-04_passwd.PNG

3
4
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
3
4