≡ Menu

Unix Command To Change Password

I am a new Unix user at my university/school. In Unix, how do I change my password to safeguard and increase the security of my Unix account?

It is a good idea to change your password every month or at least every four months. Make sure you use combination of alphabets (upper and lower case characters), numbers, and special characters as a password to safeguard your account. You should choose a password of at least ten characters. Do not write down your username and password. Do not share your password or send anyone via email, even if the email or sysadmin requesting your password seems official. A request for a password via email is very likely a phishing scam.

passwd command syntax

You need to use the Unix passwd command to change your password. The syntax is:

passwd

The Unix will prompt you for your old password, ask for a new password, and force you to repeat your new password for verification. Please note that Unix passwords are case sensitive. The above command will change the password only on the computer or server you are currently using. If you are logged on nas01 server the password will only on the nas01 sever and not on nas02 or any other Unix based server/computer.

Sample demo

Animated gif 01: The Unix passwd command demo. Learn how to change your Unix password.

Animated gif 01: The Unix passwd command demo. Learn how to change your Unix password.

For more information please see passwd command man page.

Share this tutorial on:
{ 0 comments… add one }
Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: ,