How to Change a Password Command in UNIX
- 1). Open a terminal session.
- 2). Type the command "passwd" to change your password. If you are the root user and you want to change another person's password type the command "passwd user". Replace the word "user" with the username of the person whose password you want to change.
- 3). Type your current password. The root user will not have to type the current password unless he is changing the root password.
- 4). Type the new password.
- 5). Type the new password a second time.
Source...