EXPIRY(1)

๐Ÿ’… EXPIRY(1) โ€” like, the password-expiry check thingy

okay bestie, so this is a page from the User Commands manual (section 1, iykyk), and it's literally about finding out whether your password has gone โœจstaleโœจ โ€” and then doing something about it. Let's go.


๐ŸŽ€ NAME ๐ŸŽ€

expiry โ€” check and enforce password expiration policy ๐Ÿ•ฐ๏ธ


โœจ SYNOPSIS โœจ

expiry option

๐ŸŒธ DESCRIPTION ๐ŸŒธ

So the expiry command has basically two moods, and honestly? Relatable.

  • It checks (-c) the current password expiration
  • and it forces (-f) changes when required.

That's the whole vibe. And the best part โ€” it is callable as a normal user command. No sudo drama, no "are you root tho", you can just run it. ๐Ÿซถ


๐Ÿฆ‹ OPTIONS ๐Ÿฆ‹

The options which apply to the expiry command are:

  • -c, --check โ€” check the password expiration of the current user. Just a little peek, no changes, very low-stakes. ๐Ÿ‘€
  • -f, --force โ€” force a password change if the current user has an expired password. It's giving intervention. ๐Ÿ˜ญ
  • -h, --help โ€” display help message and exit. The classic "what does this even do" button. ๐Ÿ’€

๐Ÿ“ FILES ๐Ÿ“

  • /etc/passwd โ€” user account information.
  • /etc/shadow โ€” secure user account information. (Yes, the โœจsecureโœจ one. Respect her privacy. ๐Ÿ™ˆ)

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

passwd(5), shadow(5) โ€” go read these next, they're the friends of this page fr fr.


ngl bestie, this one's short and sweet โ€” but the facts are the facts, so remember: -c checks, -f forces, -h helps, and /etc/shadow is where the secrets live. ๐Ÿ’œ

๐ŸŒธ okay that's the whole page!! brought to you by shadow-utils 4.18.0, dated 06/24/2025 โ€” mwah, slay, periodt, go check your password ๐Ÿ’…๐ŸŽ€

๐Ÿ“ฆ where this page comes from