How to Change User Password in Linux

Posted by linuxize on Jun 27, 2018 5:04 PM EDT; By linuxize
Mail this story
Print this story

This tutorial will show you how to change a user password in Linux. We will also cover how to force a user to change their password the next time they login. The examples provided in the tutorial should work with any Linux distribution.

To change the password of a user account in Linux you can use the passwd command. The encrypted users passwords as well as other password related information are stored in the /etc/shadow file.

As a normal user you can only change your own password. The root user and users with sudo privileges can change another user’s password and define how that user password can be used or changed.

When changing the password make you’re using strong and unique password. Having a strong password is the most important thing you can do to secure your account. Often a strong password has at least 16 characters, use at least one uppercase letter, one lowercase letter, one number and one special character.

Full Story

» Read more about: Story Type: Tutorial; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.