That's right chage won't allow you to tell a user to change it's password everytime they log in. It's used for setting the amount of days in which a user should change it's password.
But what exactly are you trying to accomplish by making users change their password everytime they log in? A user will never be able to remember his password if he has to change it that often, depending on how often the user logs in ofcourse. So if they can't remember the password they will have to write it down or keep record of it some other way. Is that really safer?
Besides what if the connection breaks and the user has to log in again (usually only if they login remote). The user will have to change their password again in that case? And what if you log in a second or a third time, will you have to change it again. Maybe some context of what you are gonna use it for would help.
There is no standard way to get what you want accomplished, although it is possible to get it done. But there is probably a very logical reason why people don't need this.
|