{
    "content": [
        {
            "type": "text",
            "text": "# nologin (man)\n\n## NAME\n\nnologin - politely refuse a login\n\n## DESCRIPTION\n\nThe nologin command displays a message that an account is not available and exits non-zero.\nIt is intended as a replacement shell field for accounts that have been disabled.\n\n## TLDR\n\n> Alternative shell that prevents a user from logging in.\n\n- Set a user's login shell to `nologin` to prevent the user from logging in:\n  `chsh {{-s|--shell}} {{user}} nologin`\n- Customize message for users with the login shell of `nologin`:\n  `echo \"{{declined_login_message}}\" > /etc/nologin.txt`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS** (1 subsections)\n- **DESCRIPTION**\n- **SEE ALSO**\n- **HISTORY**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "nologin",
        "section": "",
        "mode": "man",
        "summary": "nologin - politely refuse a login",
        "synopsis": "",
        "tldr_summary": "Alternative shell that prevents a user from logging in.",
        "tldr_examples": [
            {
                "description": "Set a user's login shell to `nologin` to prevent the user from logging in",
                "command": "chsh {{-s|--shell}} {{user}} nologin"
            },
            {
                "description": "Customize message for users with the login shell of `nologin`",
                "command": "echo \"{{declined_login_message}}\" > /etc/nologin.txt"
            }
        ],
        "tldr_source": "official",
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "login",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/login/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "nologin",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "HISTORY",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "nologin - politely refuse a login\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "",
                "subsections": [
                    {
                        "name": "nologin",
                        "content": ""
                    }
                ]
            },
            "DESCRIPTION": {
                "content": "The nologin command displays a message that an account is not available and exits non-zero.\nIt is intended as a replacement shell field for accounts that have been disabled.\n\nTo disable all logins, investigate nologin(5).\n\nIf SSHORIGINALCOMMAND is populated it will be logged.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "login(1), nologin(5).\n",
                "subsections": []
            },
            "HISTORY": {
                "content": "The nologin command appeared in BSD 4.4.\n\n\n\nshadow-utils 4.8.1                           02/06/2024                                   NOLOGIN(8)",
                "subsections": []
            }
        }
    }
}