{
    "mode": "man",
    "parameter": "PAM_RHOSTS",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/PAM_RHOSTS/8/json",
    "generated": "2026-06-15T18:53:10Z",
    "synopsis": "pamrhosts.so",
    "sections": {
        "NAME": {
            "content": "pamrhosts - The rhosts PAM module\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pamrhosts.so\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module performs the standard network authentication for services, as used by traditional\nimplementations of rlogin and rsh etc.\n\nThe authentication mechanism of this module is based on the contents of two files;\n/etc/hosts.equiv (or and ~/.rhosts. Firstly, hosts listed in the former file are treated as\nequivalent to the localhost. Secondly, entries in the user's own copy of the latter file is\nused to map \"remote-host remote-user\" pairs to that user's account on the current host.\nAccess is granted to the user if their host is present in /etc/hosts.equiv and their remote\naccount is identical to their local one, or if their remote account has an entry in their\npersonal configuration file.\n\nThe module authenticates a remote user (internally specified by the item PAMRUSER connecting\nfrom the remote host (internally specified by the item PAMRHOST). Accordingly, for\napplications to be compatible this authentication module they must set these items prior to\ncalling pamauthenticate(). The module is not capable of independently probing the network\nconnection for such information.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "debug",
                    "content": "Print debug information.\n"
                },
                {
                    "name": "silent",
                    "content": "Don't print informative messages.\n\nsuperuser=account\nHandle account as root.\n"
                }
            ]
        },
        "MODULE TYPES PROVIDED": {
            "content": "Only the auth module type is provided.\n",
            "subsections": []
        },
        "RETURN VALUES": {
            "content": "PAMAUTHERR\nThe remote host, remote user name or the local user name couldn't be determined or access\nwas denied by .rhosts file.\n\nPAMUSERUNKNOWN\nUser is not known to system.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "To grant a remote user access by /etc/hosts.equiv or .rhosts for rsh add the following lines\nto /etc/pam.d/rsh:\n\n#%PAM-1.0\n#\nauth     required       pamrhosts.so\nauth     required       pamnologin.so\nauth     required       pamenv.so\nauth     required       pamunix.so\n\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "rootok(3), hosts.equiv(5), rhosts(5), pam.conf(5), pam.d(5), pam(7)\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "pamrhosts was written by Thorsten Kukuk <kukuk@thkukuk.de>\n\n\n\nLinux-PAM Manual                             06/08/2020                                PAMRHOSTS(8)",
            "subsections": []
        }
    },
    "summary": "pamrhosts - The rhosts PAM module",
    "flags": [],
    "examples": [
        "To grant a remote user access by /etc/hosts.equiv or .rhosts for rsh add the following lines",
        "to /etc/pam.d/rsh:",
        "#%PAM-1.0",
        "auth     required       pamrhosts.so",
        "auth     required       pamnologin.so",
        "auth     required       pamenv.so",
        "auth     required       pamunix.so"
    ],
    "see_also": [
        {
            "name": "rootok",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/rootok/3/json"
        },
        {
            "name": "hosts.equiv",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/hosts.equiv/5/json"
        },
        {
            "name": "rhosts",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/rhosts/5/json"
        },
        {
            "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"
        }
    ]
}