{
    "mode": "man",
    "parameter": "pam_echo",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/pam_echo/8/json",
    "generated": "2026-05-30T07:08:50Z",
    "synopsis": "pamecho.so [file=/path/message]",
    "sections": {
        "NAME": {
            "content": "pamecho - PAM module for printing text messages\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pamecho.so [file=/path/message]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The 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",
            "subsections": []
        },
        "OPTIONS": {
            "content": "file=/path/message\nThe content of the file /path/message will be printed with the PAM conversion function as\nPAMTEXTINFO.\n",
            "subsections": []
        },
        "MODULE TYPES PROVIDED": {
            "content": "All module types (auth, account, password and session) are provided.\n",
            "subsections": []
        },
        "RETURN VALUES": {
            "content": "PAMBUFERR\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",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "For 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\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pam.conf(8), pam.d(5), pam(7)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Thorsten Kukuk <kukuk@thkukuk.de>\n\n\n\nLinux-PAM Manual                             06/08/2020                                  PAMECHO(8)",
            "subsections": []
        }
    },
    "summary": "pamecho - PAM module for printing text messages",
    "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"
        }
    ]
}