Advanced

How to Change User Password in Linux

Posted by linuxize on · Post a comment
linuxize.com; 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

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

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments

No comments yet. Be the first.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post