Originally Posted by dave12
Im trying to make a script that will test the suitability of a password. I understand that all the features I want are in the /etc/pam.d/common-password file. From here I can change the length of a password, what characters must be in a password, if the words are in the dictionary, etc... but I don't know how to change these values by using a script. I want it in a script because I want to be able to suggest a more suitable password if the original password doesn't meet the criteria.
Ok...you've said what you want, but what is your question? What are you having problems with? What have you written so far?
We'll be glad to help you with a script, but I doubt anyone is going to write it for you. Post what you've written, and where you're getting stuck, and we can assist.