first commit
This commit is contained in:
commit
ba848e218d
1001 changed files with 152333 additions and 0 deletions
6
shell/safe/01-password.sh
Normal file
6
shell/safe/01-password.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
# 密码长度
|
||||
sed -i 's/^PASS_MIN_LEN 5/PASS_MIN_LEN $lenth/g' /etc/login.defs
|
||||
# 密码过期
|
||||
sed -i 's/^PASS_MAX_DAYS 99999/PASS_MAX_DAYS $days/g' /etc/login.defs
|
Loading…
Add table
Add a link
Reference in a new issue