1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:42:08 +02:00
tldr/pages/common/passwd.md
Managor 15bdd2e0d7
passwd: add script example (#16009)
* Update pages/common/passwd.md

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-03-25 19:03:02 +11:00

495 B

passwd

Change a user's password. More information: https://manned.org/passwd.

  • Change the password of the current user interactively:

passwd

  • Change the password of a specific user:

passwd {{username}}

  • Get the current status of the user:

passwd {{[-S|--status]}}

  • Make the password of the account blank (it will set the named account passwordless):

passwd {{[-d|--delete]}}

  • Set password programmatically (ideal for install scripts):

yes {{password}} | passwd