Setting Minimum Password Length

This section describes the procedure to set the minimum length for a password.

Run the following procedure for each and every server in the topology:
  1. Log in as admusr on the server.
    login: admusr
    Password: <current admin user password>
  2. Check out the file system-auth and grep for variable ‘minlen’ in the file using the following command:
    
    $ sudo rcstool co /etc/pam.d/system-auth 
    $ grep minlen /etc/pam.d/system-auth
    • If a result is returned, then run the following command:
      $ sudo sed -i "/password.*requisite.*pam_cracklib.so/s/minlen[^ ]*/minlen=14/" /etc/pam.d/system-auth
    • If no result is returned, then run the following command:
      $ sudo sed -i "/password.*requisite.*pam_cracklib.so/s/$/ minlen=14/" /etc/pam.d/system-auth
  3. Check in the file system-auth:
    $ sudo rcstool ci /etc/pam.d/system-auth