To change a password in the Linux terminal, the primary command used is passwd.

 To change a password in the Linux terminal, the primary command used is passwd.

To change your own password:
  • Open a terminal.
  • Type passwd and press Enter.
  • You will be prompted to enter your current password. Type it and press Enter. (Note: The characters you type will not be displayed on the screen for security reasons).
  • You will then be prompted to enter your new password. Type it and press Enter. 
  • Finally, you will be asked to retype your new password to confirm it. Type it again and press Enter.
To change another user's password (requires root privileges):
  • Open a terminal.
  • Type sudo passwd <username> (replace <username> with the actual username of the account you want to modify) and press Enter.
  • You will be prompted for your own password (the one associated with your sudo privileges). Type it and press Enter.
  • You will then be prompted to enter the new password for the specified user. Type it and press Enter.
  • Re-enter the new password to confirm it and press Enter.

Comments

Popular posts from this blog

How to step by step in detail install ssh on cachyos

How do I install OpenSSH server on Ubuntu Linux