{
    "content": [
        {
            "type": "text",
            "text": "# pam_echo(8) (man)\n\n**Summary:** pamecho - PAM module for printing text messages\n\n**Synopsis:** pamecho.so [file=/path/message]\n\n## Examples\n\n- `For an example of the use of this module, we show how it may be used to print information`\n- `about good passwords:`\n- `password optional pamecho.so file=/usr/share/doc/good-password.txt`\n- `password required pamunix.so`\n\n## See Also\n\n- pam.conf(8)\n- pam.d(5)\n- pam(7)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (23 lines)\n- **OPTIONS** (4 lines)\n- **MODULE TYPES PROVIDED** (2 lines)\n- **RETURN VALUES** (9 lines)\n- **EXAMPLES** (8 lines)\n- **SEE ALSO** (2 lines)\n- **AUTHOR** (5 lines)\n\n## Full Content\n\n### NAME\n\npamecho - PAM module for printing text messages\n\n### SYNOPSIS\n\npamecho.so [file=/path/message]\n\n### DESCRIPTION\n\nThe pamecho PAM module is for printing text messages to inform user about special things.\nSequences starting with the % character are interpreted in the following way:\n\n%H\nThe name of the remote host (PAMRHOST).\n\n%h\nThe name of the local host.\n\n%s\nThe service name (PAMSERVICE).\n\n%t\nThe name of the controlling terminal (PAMTTY).\n\n%U\nThe remote user name (PAMRUSER).\n\n%u\nThe local user name (PAMUSER).\n\nAll other sequences beginning with % expands to the characters following the % character.\n\n### OPTIONS\n\nfile=/path/message\nThe content of the file /path/message will be printed with the PAM conversion function as\nPAMTEXTINFO.\n\n### MODULE TYPES PROVIDED\n\nAll module types (auth, account, password and session) are provided.\n\n### RETURN VALUES\n\nPAMBUFERR\nMemory buffer error.\n\nPAMSUCCESS\nMessage was successful printed.\n\nPAMIGNORE\nPAMSILENT flag was given or message file does not exist, no message printed.\n\n### EXAMPLES\n\nFor an example of the use of this module, we show how it may be used to print information\nabout good passwords:\n\npassword optional pamecho.so file=/usr/share/doc/good-password.txt\npassword required pamunix.so\n\n### SEE ALSO\n\npam.conf(8), pam.d(5), pam(7)\n\n### AUTHOR\n\nThorsten Kukuk <kukuk@thkukuk.de>\n\n\n\nLinux-PAM Manual                             06/08/2020                                  PAMECHO(8)\n\n"
        }
    ],
    "structuredContent": {
        "command": "pam_echo",
        "section": "8",
        "mode": "man",
        "summary": "pamecho - PAM module for printing text messages",
        "synopsis": "pamecho.so [file=/path/message]",
        "flags": [],
        "examples": [
            "For an example of the use of this module, we show how it may be used to print information",
            "about good passwords:",
            "password optional pamecho.so file=/usr/share/doc/good-password.txt",
            "password required pamunix.so"
        ],
        "see_also": [
            {
                "name": "pam.conf",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/pam.conf/8/json"
            },
            {
                "name": "pam.d",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/pam.d/5/json"
            },
            {
                "name": "pam",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/pam/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 23,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "MODULE TYPES PROVIDED",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "RETURN VALUES",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}