What are the options for parameters in the Linux passwd…

The passwd command in Linux has the following options:

  1. Apply password changes to all user accounts.
  2. -delete: Eliminate user password, making it password-free.
  3. -e, –expire: Force user password expiration.
  4. Display help information with “-h” or “–help” option.
  5. -i, –inactive INACTIVE: specify the number of days a password remains inactive.
  6. Keep tokens: retain user authentication tokens before changing the password.
  7. -l, –lock: Lock user account, preventing login.
  8. Set the minimum number of days before a password can be changed with MIN_DAYS using the option -n or –mindays.
  9. -q, –quiet: silent mode, no output displayed.
  10. Change the repository used for storing passwords when updating user passwords.
  11. Display information about the status of user passwords.
  12. -u, –unlock: Unlock user account for login.
  13. Show warning message X days before password expires.
  14. -x, –maxdays MAX_DAYS: Specify the maximum number of days a password can be used.

The above are the commonly used options for the passwd command, you can choose the appropriate option as needed.

bannerAds