I have implemented a new passwd policy and am forcing users to change their password. The problem I’m facing is I don’t they dont’ know what the password requirements are. How can I communicate this to them before they change their password using passwd?
That’s a great question, and it’s actually really simple. What we have to do is create our own custom script that displays the password requirements and then calls the passwd program. And we have to call the script whenever a user types passwd command at the prompt.