Forrest logo
back to context overview

chpasswd

List of commands for chpasswd:

  • chpasswd:tldr:0e9a7 chpasswd: Change the passwords for multiple users (The input text must not contain any spaces.).
    $ printf "${username_1}:${new_password_1}\n${username_2}:${new_password_2}" | sudo chpasswd
    try on your machine
    explain this command
  • chpasswd:tldr:af8b7 chpasswd: Change the password for a specific user, and specify it in encrypted form.
    $ printf "${username}:${new_encrypted_password}" | sudo chpasswd --encrypted
    try on your machine
    explain this command
  • chpasswd:tldr:c1c90 chpasswd: Change the password for a specific user, and use a specific encryption for the stored password.
    $ printf "${username}:${new_password}" | sudo chpasswd --crypt-method ${select}
    try on your machine
    explain this command
  • chpasswd:tldr:d7753 chpasswd: Change the password for a specific user.
    $ printf "${username}:${new_password}" | sudo chpasswd
    try on your machine
    explain this command
back to context overview