Exsi6.5修改主机密码

由于Exsi6.5应用了密码策略,导致无法更改root密码,研究了一下,终于找到了方法,记录一下。

 

Exsi更改密码总是提示密码不符合复杂度,受控于pam_passwdqc.so这个东西的影响,关于Exsi密码问题官方也有介绍,但是具体没告诉你怎么去操作这个密码:

[root@localhost:/etc/pam.d] passwd root
Changing password for root

You can now choose the new password or passphrase.

A valid password should be a mix of upper and lower case letters,
digits, and other characters. You can use a 7 character long
password with characters from at least 3 of these 4 classes.
An upper case letter that begins the password and a digit that
ends it do not count towards the number of character classes used.

A passphrase should be of at least 3 words, 8 to 30 characters
long, and contain enough different characters.

Alternatively, if no one else can see your terminal now, you can
pick this as your password: "hey4Lime&roar".

Enter new password: 
Re-type new password: 

 

 

修改办法:

vi /etc/pam.d/passwd

password   required    /lib/security/$ISA/pam_passwdqc.so retry=3 min=disabled,disabled,7,7,7 max=30 match=4 similar=deny enforce=users 

 

按照上面的修改上面这行行了,主要是enforce=users在起作用。

转载于:https://my.oschina.net/1914195322/blog/1830620

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值