I want to make it so that every time anyone creates a new user on my system that user will be forced to set a password during their first login. I can't find anything in /etc/login.defs that will do it. I also tried to find something in /etc/pam.d and was unsuccessful. Essentially I want any new user to have an expired password without needing someone to chage -d 0 or passwd -e.
Is there a parameter for useradd that I can set the password age to expired so that I could make an alias or a wrapper for useradd? Or would I have to make an alias for useradd with chage -d 0 after it?
I'm not a sys admin, we ship RHEL with our product and I've been tasked to change our default security settings. Any useful suggestions greatly appreciated.