linux su 模块未知,使用passwd命令,出现passwd:模块未知,有大神知道是怎么回事吗...

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

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

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值