いつものように初起動して、rootでloginして、vipwで自分のアカウントを追加して、passwdを設定
しようとすると、
# passwd hoge
passwd: Module is unknown
passwd: password unchanged
# cat /etc/pam.d/passwd
#%PAM-1.0
auth include system-auth
account include system-auth
password include system-auth
session include system-auth
# grep passw /etc/pam.d/system-auth
# passwords will not work unless the lines for the pam_pwquality module are
# commented out and the line for the traditional no-quality-check password
# The pam_pwquality module will check the quality of a user-supplied password
# Default password quality checking with pam_pwquality. If you don’t want
# password quality checking, comment out these two lines and uncomment the
# traditional password handling line below.
password requisite pam_pwquality.so minlen=6 retry=3
password sufficient pam_unix.so nullok sha512 shadow minlen=6 try_first_pass use_authtok
# Traditional password handling without pam_pwquality password checking.
#password sufficient pam_unix.so nullok sha512 shadow minlen=6
password required pam_deny.so
libpwquality-1.4.4-x86_64-6.txz (password quality checking lib) をinstallするかどうか
考えて、https://seesaawiki.jp/lifewithslackzaurus_15_0/d/INSTALL%5fORIG やっぱりヤメタ。
Traditionalで行こう。
ついでにsudoを入れて使えるようにしておく。
Slack-14.2$ sudo installpkg -root /mnt3 ap/sudo-1.9.9-x86_64-1.txz
Slack-14.2$ sudo elvis /mnt3/etc/sudoers
(メモとりながらinstallはやりにくいから、Slack-14.2からinstallした)
sudoersはchmodでperm変更、編集、戻した。
sudoは15.0からsudo.confとかが追加されていたが使えてるから特に何もしてない。保留。
参考情報:
PAM設定ファイルの意味と書き方メモ
https://qiita.com/satken2/items/9a0604e1d4a78217897c
10.2. PAM 設定ファイルについて Red Hat Enterprise Linux 7
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/7/html/system-level_authentication_guide/pam_configuration_files