I am looking for a way to configure Linux machine so any time a new user is created, he/she will have to set a new password on first login.
To clarify the task here are assumptions:
- I am not looking for using
chage -d 0command every time user is created. - I do not want to create a new
useraddscript that would do this thing as 'extra'. - I am looking for a change, maybe in /etc/pam.d files that would allow my Linux administrator setting up 'global' requirement for an external tool that creates accounts.
Please let me know if you know that it is possible or if it is not possible. Either way.
I have went through PAM a lot in the last two days, and I cannot solve this part.