Scroll to navigation

EXPIRY(1) expiry EXPIRY(1)

NAME

expiry - check password expiration and enforce password change

SYNOPSIS

expiry -c|-f [user]

DESCRIPTION

expiry checks the current password expiration and prints a warning if the password is expiring or enforces a change when required.

This implementation does not require the setuid bit set, instead it will communicate via varlink protocol with pwaccessd(8) and pwupd(8) to read and modify the account data.

OPTIONS

-c, --check

Print number of days when password expires for the caller or the specified user.

-f, --force

The caller or user is forced to change the password if it is expired but not inactive.

FILES

/etc/passwd

user account information

/etc/shadow

shadow user account information

SEE ALSO

pwaccessd(8), pwupd(8), passwd(1), passwd(5), shadow(5)

12/17/2025 account-utils 1.0.0