How Do I Reset a User in Linux?
Contents

How do I reset a Linux account?

Linux: Reset User Password

Open a terminal window. Issue the command sudo passwd USERNAME (where USERNAME is the name of the user whose password you want to change). Type your user password. Type the new password for the other user.

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.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest