{"id":4487,"date":"2022-12-20T18:08:47","date_gmt":"2022-12-20T21:08:47","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/hosts-equiv-man5\/"},"modified":"2022-12-20T18:08:47","modified_gmt":"2022-12-20T21:08:47","slug":"hosts-equiv-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/hosts-equiv-man5\/","title":{"rendered":"HOSTS.EQUIV (man5)"},"content":{"rendered":"<h1 align=\"center\">HOSTS.EQUIV<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COLOPHON\">COLOPHON<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">hosts.equiv \u2212 list of hosts and users that are granted &#8220;trusted&#8221; <b>r<\/b> command access to your system<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The file <i>\/etc\/hosts.equiv<\/i> allows or denies hosts and users to use the <b>r<\/b>-commands (e.g., <b>rlogin<\/b>, <b>rsh<\/b>, or <b>rcp<\/b>) without supplying a password.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The file uses the following format: <i><br \/> +|[\u2212]hostname|+@netgroup|\u2212@netgroup <br \/> [+|[\u2212]username|+@netgroup|\u2212@netgroup]<\/i><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>hostname<\/i> is the name of a host which is logically equivalent to the local host. Users logged into that host are allowed to access like-named user accounts on the local host without supplying a password. The <i>hostname<\/i> may be (optionally) preceded by a plus (+) sign. If the plus sign is used alone, it allows any host to access your system. You can explicitly deny access to a host by preceding the <i>hostname<\/i> by a minus (\u2212) sign. Users from that host must always supply additional credentials, including possibly a password. For security reasons you should always use the FQDN of the hostname and not the short hostname.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i>username<\/i> entry grants a specific user access to all user accounts (except root) without supplying a password. That means the user is NOT restricted to like-named accounts. The <i>username<\/i> may be (optionally) preceded by a plus (+) sign. You can also explicitly deny access to a specific user by preceding the <i>username<\/i> with a minus (\u2212) sign. This says that the user is not trusted no matter what other entries for that host exist.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Netgroups can be specified by preceding the netgroup by an @ sign.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Be extremely careful when using the plus (+) sign. A simple typographical error could result in a standalone plus sign. A standalone plus sign is a wildcard character that means &#8220;any host&#8221;!<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/etc\/hosts.equiv<\/i><\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Some systems will honor the contents of this file only when it has owner root and no write permission for anybody else. Some exceptionally paranoid systems even require that there be no other hard links to the file.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Modern systems use the Pluggable Authentication Modules library (PAM). With PAM a standalone plus sign is considered a wildcard character which means &#8220;any host&#8221; only when the word <i>promiscuous<\/i> is added to the auth component line in your PAM file for the particular service (e.g., <b>rlogin<\/b>).<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Below are some example <i>\/etc\/host.equiv<\/i> or <i>~\/.rhosts<\/i> files.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Allow any user to log in from any host:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">+<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Allow any user from <i>host<\/i> with a matching local account to log in:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">host<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note: the use of <i>+host<\/i> is never a valid syntax, including attempting to specify that any user from the host is allowed.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Allow any user from <i>host<\/i> to log in:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">host +<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note: this is distinct from the previous example since it does not require a matching local account.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Allow <i>user<\/i> from <i>host<\/i> to log in as any non-root user:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">host user<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Allow all users with matching local accounts from <i>host<\/i> to log in except for <i>baduser<\/i>:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">host \u2212baduser <br \/> host<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Deny all users from <i>host<\/i>:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212host<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note: the use of <i>\u2212host\u00a0\u2212user<\/i> is never a valid syntax, including attempting to specify that a particular user from the host is not trusted.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Allow all users with matching local accounts on all hosts in a <i>netgroup<\/i>:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">+@netgroup<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Disallow all users on all hosts in a <i>netgroup<\/i>:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\u2212@netgroup<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Allow all users in a <i>netgroup<\/i> to log in from <i>host<\/i> as any non-root user:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">host +@netgroup<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Allow all users with matching local accounts on all hosts in a <i>netgroup<\/i> except <i>baduser<\/i>:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">+@netgroup \u2212baduser <br \/> +@netgroup<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Note: the deny statements must always precede the allow statements because the file is processed sequentially until the first matching rule is found.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>rhosts<\/b>(5), <b>rlogind<\/b>(8), <b>rshd<\/b>(8)<\/p>\n<h2>COLOPHON <a name=\"COLOPHON\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This page is part of release 5.10 of the Linux <i>man-pages<\/i> project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https:\/\/www.kernel.org\/doc\/man\u2212pages\/.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  hosts.equiv \u2212 list of hosts and users that are granted &#8220;trusted&#8221; r command access to your system <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1420,1291],"class_list":["post-4487","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-hosts","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4487"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4487\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}