10 passwd command examples in Linux

6 Responses

  1. RoseHosting says:

    Great examples!

    The following can be used to change user password using shell script.
    echo -e "newpasswordnnewpassword" | passwd username

  2. Abhi says:

    Can i make same current asking policy for root when using passwd command as root????

  3. Anurag says:

    What is difference between passwd and usermod command. Even passwd can do same things that usermod does. then please tell the actual difference between passwd and usermod command.

  4. Mangal Chavan says:

    while using the command passwd ,
    why it showing error after changing the password or enter new password

  1. February 11, 2016

    […] For more details on passwd command please refer ‘10 passwd command examples in Linux‘ […]

Leave a Reply

Your email address will not be published. Required fields are marked *