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在起作用。关于pam_passwdqc.so,可以参考以下使用说明

https://www.freebsd.org/cgi/man.cgi?query=pam_passwdqc&sektion=8



你可能感兴趣的:(Vmware)