lchage(1)
β¨ 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
-1to disable password expiration, i.e. to ignore--mindays, and--maxdaysand related settings. she just stops caring. - Set days to
0to enforce password change on next login. (This also disables password expiration until the password is changed.) dramatic but effective π
- Set days to
-E,--expire=daysβ sets the account expiration date to days after Jan 1 1970. Set days to-1to 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-1to 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 to0or-1to disable this requirement.- If this value is larger than the value set by
--maxdays, the user cannot change the password. like, at all. trapped. π
- If this value is larger than the value set by
-M,--maxdays=daysβ requires changing the password after days since last password change. Set days to-1to 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 to0or-1to 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 π
πΈ
π¦ where this page comes from
- alpine 3.24: libuser-doc 0.64-r2 Β· LGPL-2.0-or-later
- centos-stream 10: libuser 0.64-12.el10 Β· LGPL-2.0-or-later
- centos-stream 9: libuser 0.63-17.el9 Β· LGPLv2+
- centos-stream 9: libuser 0.63-17.el9 Β· LGPLv2+
- debian bookworm: libuser 1:0.64~dfsg-1 Β· LGPL-2.0-or-later
- debian trixie: libuser 1:0.64+git20241106~dfsg-3 Β· LGPL-2.0-or-later
- fedora 43: libuser 0.64-16.fc43 Β· LGPL-2.0-or-later
- fedora 43: libuser 0.64-16.fc43 Β· LGPL-2.0-or-later
- fedora 44: libuser 0.64-17.fc44 Β· LGPL-2.0-or-later
- fedora 44: libuser 0.64-17.fc44 Β· LGPL-2.0-or-later
- opensuse-leap 16.0: libuser 0.64-bp160.1.1 Β· LGPL-2.0-or-later
- opensuse-leap 16.0: libuser 0.64-bp160.1.1 Β· LGPL-2.0-or-later
- opensuse-leap 16.0: libuser 0.64-bp160.1.1 Β· LGPL-2.0-or-later
- opensuse-leap 16.0: libuser 0.64-bp160.1.1 Β· LGPL-2.0-or-later
- ubuntu noble: libuser 1:0.64~dfsg-2build2 Β· LGPL-2.0-or-later
- ubuntu questing: libuser 1:0.64+git20241106~dfsg-3
- ubuntu resolute: libuser 1:0.64+git20241106~dfsg-4build1 Β· LGPL-2.0-or-later
- ubuntu stonking: libuser 1:0.64+git20241106~dfsg-4build1 Β· LGPL-2.0-or-later
- Copyright (C) 2005, 2012 Red Hat, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms