{"id":3429,"date":"2022-12-20T17:02:39","date_gmt":"2022-12-20T20:02:39","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/pam_ftp-man8\/"},"modified":"2022-12-20T17:02:39","modified_gmt":"2022-12-20T20:02:39","slug":"pam_ftp-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/pam_ftp-man8\/","title":{"rendered":"PAM_FTP (man8)"},"content":{"rendered":"<h1 align=\"center\">PAM_FTP<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#MODULE TYPES PROVIDED\">MODULE TYPES PROVIDED<\/a><br \/> <a href=\"#RETURN VALUES\">RETURN VALUES<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_ftp \u2212 PAM module for anonymous access module<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"72%\">\n<p style=\"margin-top: 1em\"><b>pam_ftp.so<\/b> [debug] [ignore] [users=<i>XXX,YYY,<\/i>&#8230;]<\/p>\n<\/td>\n<td width=\"17%\"> <\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_ftp is a PAM module which provides a pluggable anonymous ftp mode of access.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This module intercepts the user&#8217;s name and password. If the name is <i>ftp<\/i> or <i>anonymous<\/i>, the user&#8217;s password is broken up at the <i>@<\/i> delimiter into a <i>PAM_RUSER<\/i> and a <i>PAM_RHOST<\/i> part; these pam\u2212items being set accordingly. The username (<i>PAM_USER<\/i>) is set to <i>ftp<\/i>. In this case the module succeeds. Alternatively, the module sets the <i>PAM_AUTHTOK<\/i> item with the entered password and fails.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This module is not safe and easily spoofable.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>debug<\/b><\/p>\n<p style=\"margin-left:17%;\">Print debug information.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ignore<\/b><\/p>\n<p style=\"margin-left:17%;\">Pay no attention to the email address of the user (if supplied).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>ftp=<\/b><i>XXX,YYY,&#8230;<\/i><\/p>\n<p style=\"margin-left:17%;\">Instead of <i>ftp<\/i> or <i>anonymous<\/i>, provide anonymous login to the comma separated list of users: <i>XXX,YYY,&#8230;<\/i>. Should the applicant enter one of these usernames the returned username is set to the first in the list: <i>XXX<\/i>.<\/p>\n<h2>MODULE TYPES PROVIDED <a name=\"MODULE TYPES PROVIDED\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Only the <b>auth<\/b> module type is provided.<\/p>\n<h2>RETURN VALUES <a name=\"RETURN VALUES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_SUCCESS<\/p>\n<p style=\"margin-left:17%;\">The authentication was successful.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">PAM_USER_UNKNOWN<\/p>\n<p style=\"margin-left:17%;\">User not known.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Add the following line to \/etc\/pam.d\/ftpd to handle ftp style anonymous login:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"># <br \/> # ftpd; add ftp\u2212specifics. These lines enable anonymous ftp over <br \/> # standard UN*X access (the listfile entry blocks access to <br \/> # users listed in \/etc\/ftpusers) <br \/> # <br \/> auth sufficient pam_ftp.so <br \/> auth required pam_unix.so use_first_pass <br \/> auth required pam_listfile.so  <br \/> onerr=succeed item=user sense=deny file=\/etc\/ftpusers<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>pam.conf<\/b>(5), <b>pam.d<\/b>(5), <b>pam<\/b>(8)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">pam_ftp was written by Andrew G. Morgan <morgan@kernel.org>.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  pam_ftp \u2212 PAM module for anonymous access module <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,555],"class_list":["post-3429","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-pam_ftp"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3429","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=3429"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3429\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}