Re: Forcing new users to change their password on first login?
> The only way I could come up with to create a user with an expired
> account, is to change the date of the last password change to the
> lowest value possible (January 1th 1970), and the maximum password age
> to the difference in days between that date and today.
A simpler way is to just use passwd(1):
-e, --expire
Immediately expire an account´s password. This in effect can force
a user to change his/her password at the user´s next login.
-jim
Reply to: