Change Your Passwords in Linux [How To]
Creating strong passwords is not the only thing you need to do to save your accounts from being hacked or stolen, updating your passwords regularly is also something which you should consider. I usually change all my passwords atleast once in three months and use different passwords for different accounts.
Many a times when working with Linux users do not change their passwords if they are only connecting to the Linux machine using a program like putty. Here is a quick and easy method to change your password on a Linux box.
Login to the Linux Box using SSH client
The first thing you need to do before changing the password is to login into the Linux box you want to update the password for.
Use the passwd Command
Using the passwd (case sensitive) command you can easily change your password. Once you issue the passwd command you will be prompted to enter your old password. After you do that you will be asked to enter a new password for your account and reconfirm it once again.
After you have entered the new password do not close the session, simply open a new session to the server and login with the new password. If something goes wrong you can rectify it in the earlier session window.
Keep tuned for more such Interesting Linux tips and tricks from Techie Buzz.









Linux Blog
April 15th, 2008 at 10:22 pm #
Spot on article but I’m more interested in the other tabs that you have open in your vterm window
Very interesting!
Eugene
April 16th, 2008 at 3:57 am #
“After you have entered the new password do not close the session, simply open a new session to the server and login with the new password. If something goes wrong you can rectify it in the earlier session window.” - brilliant words. Sometimes such expirience costs a lot
SanchezBoy
April 24th, 2008 at 10:43 am #
Thanks for post, for me it has appeared useful. I wait not for posts not worse.
Moldova
May 5th, 2008 at 11:30 am #
Great stuff. This is definitely useful.