LoginSignup
0
0

More than 3 years have passed since last update.

Ubuntu 使用者の暗証番号を短くて設置する方法

Posted at

面倒すぎるので、とりあえず短い暗証番号が欲しいですが、短すぎるで出来なかった。
解決方法をここでメモします。

やり方

sudo vi /etc/pam.d/common-password

下記の行で minlen=n を追記します
例えば、最小桁3に設置します

/etc/pam.d/common-password
...
# here are the per-package modules (the "Primary" block)
password        [success=1 default=ignore]      pam_unix.so obscure sha512 minlen=3
...

それからpasswdコマンドで設置できます

sudo passwd username

参考

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