How Do I Force a User to Change Password on Next Login 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...
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.
Must Read
What is the command to change the password of a user?
passwd command in Linux is used to change the user account passwords. The root user reserves the privilege to change the password for any user on the system, while a normal user can only change the account password for his or her own account.