Differences between revisions 1 and 5 (spanning 4 versions)
Revision 1 as of 2022-11-16 07:48:10
Size: 203
Editor: localhost
Comment:
Revision 5 as of 2022-11-16 09:32:06
Size: 453
Editor: localhost
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
tar -zcvf etc$(date +%F).tar.gz /etc/ tar -zcvf etc_$(date +%F).tar.gz /etc/
Line 9: Line 9:

{{{

cat >> /etc/pam.d/system-auth <<"EOF"
# ${date +%F} added
password requisite pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type= minlen=8 lcredit=-1 ucredit=-1 dcredit=-4 ocredit=-1 enforce_for_root
EOF

}}}

Describe désert/workarea/2022-11-16 here.

Step 1: 备份etc目录配制

tar -zcvf etc_$(date +%F).tar.gz /etc/

Step 2: 修改/etc/pam.d目录中的system-auto文件为指定的参数

cat >> /etc/pam.d/system-auth <<"EOF"
# ${date +%F} added
password    requisite     pam_pwquality.so try_first_pass local_users_only retry=3 authtok_type= minlen=8 lcredit=-1 ucredit=-1 dcredit=-4 ocredit=-1 enforce_for_root
EOF

désert/workarea/2022-11-16 (last edited 2022-11-17 09:32:05 by localhost)