{
    "mode": "man",
    "parameter": "EXPIRY",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/EXPIRY/1/json",
    "generated": "2026-06-16T10:47:52Z",
    "synopsis": "expiry option",
    "sections": {
        "NAME": {
            "content": "expiry - check and enforce password expiration policy\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "expiry option\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The expiry command checks (-c) the current password expiration and forces (-f) changes when\nrequired. It is callable as a normal user command.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The options which apply to the expiry command are:\n",
            "subsections": [
                {
                    "name": "-c --check",
                    "content": "Check the password expiration of the current user.\n",
                    "flag": "-c",
                    "long": "--check"
                },
                {
                    "name": "-f --force",
                    "content": "Force a password change if the current user has an expired password.\n",
                    "flag": "-f",
                    "long": "--force"
                },
                {
                    "name": "-h --help",
                    "content": "Display help message and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                }
            ]
        },
        "FILES": {
            "content": "/etc/passwd\nUser account information.\n\n/etc/shadow\nSecure user account information.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "passwd(5), shadow(5).\n\n\n\nshadow-utils 4.8.1                           02/06/2024                                    EXPIRY(1)",
            "subsections": []
        }
    },
    "summary": "expiry - check and enforce password expiration policy",
    "flags": [
        {
            "flag": "-c",
            "long": "--check",
            "arg": null,
            "description": "Check the password expiration of the current user."
        },
        {
            "flag": "-f",
            "long": "--force",
            "arg": null,
            "description": "Force a password change if the current user has an expired password."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Display help message and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "passwd",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/passwd/5/json"
        },
        {
            "name": "shadow",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/shadow/5/json"
        }
    ]
}