Changing Password

Written by
Date: 2014-09-06 12:31:20 00:00

How to Change the Password on a Unix or Linux System

Q. How can I change my password while working on a Unix like system?

A. This command works on any Unix like system, from Unix itself to Linux and Mac OS X. The command to use is passwd

passwd

Will ask for you to enter your old password, and then the new one twice. If you need to change the password of another user.

sudo passwd some-user

This time it will not ask for the old password, and will just ask for the new one twice.