该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

YAJ-U2000-2-P:~ # vi /etc/pam.d/common-password

#

ces

#

# This file is included from other service-specific PAM config files,

# and should contain a list of modules that define the services to be

# used to change user passwords. The default is pam_unix2 in combination

# with pam_pwcheck.

# The "nullok" option allows users to change an empty password, else

# empty passwords are treated as locked accounts.

#

# To enable Blowfish or MD5 passwords, you should edit

# /etc/default/passwd.

#

# Alternate strength checking for passwords should be configured

# in /etc/security/pam_pwcheck.conf.

#

# pam_make can be used to rebuild NIS maps after password change.

#

password required pam_pwcheck.so nullok remember=5

password required pam_unix2.so nullok use_authtok

nlen=8

password required pam_pwhistory.so use_authtok remember=5

minlen=8

#password required pam_pwhistory.so use_authtok remember=5

#password required pam_make.so /var/yp

"/etc/pam.d/common-password" 26L, 1145C 已写入

把password required pam_pwhistory.souse_authtok remember=5

password required pam_pwcheck.so nullok remember=5

这这两行注释掉就可以修改密码了

Logo

更多推荐