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
- 文句を言われるが、短いパスワードでも登録できる