{
    "mode": "man",
    "parameter": "pam_ftp",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/pam_ftp/8/json",
    "generated": "2026-05-30T07:10:23Z",
    "synopsis": "pamftp.so [debug] [ignore] [users=XXX,YYY,...]",
    "sections": {
        "NAME": {
            "content": "pamftp - PAM module for anonymous access module\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pamftp.so [debug] [ignore] [users=XXX,YYY,...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "pamftp is a PAM module which provides a pluggable anonymous ftp mode of access.\n\nThis module intercepts the user's name and password. If the name is ftp or anonymous, the\nuser's password is broken up at the @ delimiter into a PAMRUSER and a PAMRHOST part; these\npam-items being set accordingly. The username (PAMUSER) is set to ftp. In this case the\nmodule succeeds. Alternatively, the module sets the PAMAUTHTOK item with the entered\npassword and fails.\n\nThis module is not safe and easily spoofable.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "debug",
                    "content": "Print debug information.\n"
                },
                {
                    "name": "ignore",
                    "content": "Pay no attention to the email address of the user (if supplied).\n\nftp=XXX,YYY,...\nInstead of ftp or anonymous, provide anonymous login to the comma separated list of\nusers: XXX,YYY,.... Should the applicant enter one of these usernames the returned\nusername is set to the first in the list: XXX.\n"
                }
            ]
        },
        "MODULE TYPES PROVIDED": {
            "content": "Only the auth module type is provided.\n",
            "subsections": []
        },
        "RETURN VALUES": {
            "content": "PAMSUCCESS\nThe authentication was successful.\n\nPAMUSERUNKNOWN\nUser not known.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Add the following line to /etc/pam.d/ftpd to handle ftp style anonymous login:\n\n#\n# ftpd; add ftp-specifics. These lines enable anonymous ftp over\n#       standard UN*X access (the listfile entry blocks access to\n#       users listed in /etc/ftpusers)\n#\nauth    sufficient  pamftp.so\nauth    required    pamunix.so usefirstpass\nauth    required    pamlistfile.so \\\nonerr=succeed item=user sense=deny file=/etc/ftpusers\n\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "pam.conf(5), pam.d(5), pam(7)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "pamftp was written by Andrew G. Morgan <morgan@kernel.org>.\n\n\n\nLinux-PAM Manual                             06/08/2020                                   PAMFTP(8)",
            "subsections": []
        }
    },
    "summary": "pamftp - PAM module for anonymous access module",
    "flags": [],
    "examples": [
        "Add the following line to /etc/pam.d/ftpd to handle ftp style anonymous login:",
        "# ftpd; add ftp-specifics. These lines enable anonymous ftp over",
        "#       standard UN*X access (the listfile entry blocks access to",
        "#       users listed in /etc/ftpusers)",
        "auth    sufficient  pamftp.so",
        "auth    required    pamunix.so usefirstpass",
        "auth    required    pamlistfile.so \\",
        "onerr=succeed item=user sense=deny file=/etc/ftpusers"
    ],
    "see_also": [
        {
            "name": "pam.conf",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/pam.conf/5/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"
        }
    ]
}