NAME

expiry – check and enforce password expiration policy  

SYNOPSIS

expiry option
 

DESCRIPTION

The expiry command checks (-c) the current password expiration and forces (-f) changes when required. It is callable as a normal user command.  

OPTIONS

The options which apply to the expiry command are:

-c, –check

Check the password expiration of the current user.

-f, –force

Force a password change if the current user has an expired password.

-h, –help

Display help message and exit.
 

FILES

/etc/passwd

User account information.

/etc/shadow

Secure user account information.
 

Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.