So,how do you, as a Linux System Administrator, force system users to change their passwords at first or next login? Very simple:

Using chage command:

If the password is already set, execute this command to expire the user account:

chage -d 0 user1

On the user’s next login, password change will be enforced.

Very simple.

Advertisements