LoginSignup
0
0

ubuntuでコマンドラインから短いパスワードを設定する方法

Posted at

Ubuntuのパスワードを短く設定したい

  • Ubuntuのパスワードを変更するコマンドは、passwd
  • デフォルトだと8文字以上必要だったりとバリデーションが必要で、これをクリアしないと更新できない
Changing password for akiralab.
Current password: 
New password: 
BAD PASSWORD: The password contains the user name in some form
New password: 
BAD PASSWORD: The password fails the dictionary check - it does not contain enough DIFFERENT characters
New password: 
BAD PASSWORD: The password is shorter than 8 characters
  • ただ、毎回打つことを考えると短いパスワードで済ませたい(セキュリティが甘くなることはもちろん注意)

そんな時は、sudo passwd {username}でバリデーションなしの任意のパスワードが設定できる

New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: password updated successfully
  • 文句を言われるが、短いパスワードでも登録できる
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