lchage(1)

πŸ“¦
version 0.64+git20241106 Β· 2 versions
  • 0.64+git20241106 Β· alpine 3.24, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.63 Β· ubuntu jammy
, in alpine 3.24, centos-stream 10, centos-stream 9, debian bookworm, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ lchage β€” the password policy glow-up tool ✨

okay bestie, so this is lchage, a General Commands Manual page, and it's literally the sister command to chage but for libuser, and she's here to display or change your user's password policy πŸ’…


🌸 SYNOPSIS 🌸

lchage [OPTION]... user

πŸ’– DESCRIPTION πŸ’–

She displays, or lets you change, the password policy of user. That's it, that's the whole job, and she does it flawlessly no cap 🫢


✨ OPTIONS ✨

  • -d, --date=days β€” sets the date of last password change to days after Jan 1 1970. lowkey the time-travel option πŸ•°οΈ
    • Set days to -1 to disable password expiration, i.e. to ignore --mindays, and --maxdays and related settings. she just stops caring.
    • Set days to 0 to enforce password change on next login. (This also disables password expiration until the password is changed.) dramatic but effective 😭
  • -E, --expire=days β€” sets the account expiration date to days after Jan 1 1970. Set days to -1 to disable account expiration.
  • -i, --interactive β€” asks all the questions when connecting to the user database, even if default answers are set up in libuser configuration. she wants to hear it from you directly πŸ’¬
  • -I, --inactive=days β€” disables the account after days after password expires (after the user is required to change the password). Set days to -1 to keep the account enabled indefinitely after password expiration.
  • -l, --list β€” only lists current user's policy and makes no changes. read-only queen, she's just looking πŸ‘€
  • -m, --mindays=days β€” requires at least days days between password changes. Set days to 0 or -1 to disable this requirement.
    • If this value is larger than the value set by --maxdays, the user cannot change the password. like, at all. trapped. πŸ’€
  • -M, --maxdays=days β€” requires changing the password after days since last password change. Set days to -1 to disable password expiration.
  • -W, --warndays=days β€” starts warning the user days before password expires (before the user is required to change the password). Set days to 0 or -1 to disable the warning. giving them a lil heads up πŸŽ€

🫢 EXIT STATUS 🫢

The exit status is 0 on success, nonzero on error. simple as that ✨


πŸ“ NOTES πŸ“

Note that β€œaccount expiration” (set by --expire) is distinct from β€œpassword expiration” (set by --maxdays). Account expiration happens on a fixed date regardless of password changes. Password expiration is relative to the date of last password change. don't mix them up bestie, iykyk 🧚

and that's the whole page πŸ’œ this one comes from libuser, dated Nov 8 2012, filed under lchage(1) in the General Commands Manual. iconic, timeless, no notes. periodt πŸ’…πŸŒΈ