15
Apr

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.

update-linux-passwd

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.

4 Responses so far | Have Your Say!

  1. 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 :-P Very interesting!

  2. 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 :(

  3. SanchezBoy
    April 24th, 2008 at 10:43 am #

    Thanks for post, for me it has appeared useful. I wait not for posts not worse.

  4. Moldova
    May 5th, 2008 at 11:30 am #

    Great stuff. This is definitely useful.

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>