How Do I Force a User to Change Password in Linux?
Contents

How do I force a user to change password on Linux login?

To force a user to change his/her password, first of all the password must have expired and to cause a user’s password to expire, you can use the passwd command, which is used to change a user’s password by specifying the -e or –expire switch along with username as shown.

How do I force a user to change password?

Right-click on the account and select Properties. To force the user account to change the password, just tick the “User must change password at next logon” checkbox. this command force all the users must change their passwords on next logon, CAUTION its include Domain Administrator also.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest