I found on the AIX documentation some rules to set about passwords length :
minlen Defines the minimum length of a password. The value is a decimal integer string. The default is a value of 0, indicates no minimum length. The maximum value allowed is PW_PASSLEN attribute. This attribute is determined by the minalpha attribute value added to the minother attribute value. If the sum of these values is greater than the minlen attribute value, the minimum length is set to the result.
Note: The PW_PASSLEN attribute is defined in
/usr/include/userpw.h. The value of the PW_PASSLEN attribute is determined by the system-wide password algorithm that is defined in
The minimum length of a password is determined by the minlen attribute and should never be greater than the PW_PASSLEN attribute. If the minalpha attribute + minother attribute is greater than the PW_PASSLEN attribute, then the minother attribute is reduced to PW_PASSLEN attribute - minalpha attribute.
But, for consistency, I need to set the max length for password to 12.
I dont understand exactly how to configure the userpw.h to set this max at 12.
There is my actual PW_PASSLEN :
#define PW_PASSLEN ((__extension_status & _EXTENSION_C2)? \ max_pw_passlen():__get_pwd_len_max())