1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ubuntuのパスワードを1文字にする

Posted at

/etc/pam.d/common-passwordファイルを編集

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

requuisite pam_pwquality.so~ の行にminlen=1を追加する

# here are the per-package modules (the "Primary" block)
- password 	requisite			pam_pwquality.so retry=3 
+ password	requisite			pam_pwquality.so retry=3 minlen=1
password	[success=2 default=ignore]	pam_unix.so obscure use_authtok try_first_pass yescrypt
password	sufficient			pam_sss.so use_authtok

passwdコマンドでパスワードを変更
新しいパスワードを2回入力しパスワード変更

sudo passwd user

参考

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?