PAM_FTP(8)
โจ PAM_FTP โ the anonymous ftp moment ๐
okay so bestie, we're looking at PAM_FTP(8) from the Linux-PAM Manual, and honestly? she's a little chaotic but she does one job and she does it. let's get into it ๐ซถ
๐ธ NAME ๐ธ
pam_ftp โ the PAM module for anonymous access, periodt.
๐ SYNOPSIS ๐
pam_ftp.so [debug] [ignore] [users=XXX,YYY,...]
๐ DESCRIPTION ๐
so pam_ftp is a PAM module that gives you a pluggable anonymous ftp mode of access. very niche, very demure.
here's the tea on how she works: this module intercepts the user's name and password. if the name is ftp or anonymous, then the user's password gets broken up at the @ delimiter into a PAM_RUSER part and a PAM_RHOST part โ and those pam-items get set accordingly, no cap. the username (PAM_USER) gets set to ftp. in this case, the module succeeds. ๐
but alternatively? the module sets the PAM_AUTHTOK item with the entered password and fails. that's it, that's the vibe. ๐ญ
โ ๏ธ BESTIE. LISTEN. This module is not safe and is easily spoofable. i'm not being dramatic, that's literally what the page says. protect yourself. ๐
โจ OPTIONS โจ
debugโ print debug information. she's telling you everything, fr fr. ๐ignoreโ pay no attention to the email address of the user (if one was supplied). living in blissful ignorance, iconic. ๐ftp=XXX,YYY,...โ instead offtporanonymous, you can provide anonymous login to a comma separated list of users:XXX,YYY,.... and if the applicant enters one of these usernames, the returned username gets set to the first one in the list:XXX. first come, first served energy ๐
๐ MODULE TYPES PROVIDED ๐
only the auth module type is provided. that's the whole roster, she's a specialist ๐
๐ฅ RETURN VALUES ๐ฅ
PAM_SUCCESSโ the authentication was successful. slay! โจPAM_USER_UNKNOWNโ user not known. who is she? don't know her. ๐ฆ
๐ EXAMPLES ๐
drop this line into /etc/pam.d/ftpd to handle ftp style anonymous login, and you're so set:
#
# 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 pam_ftp.so
auth required pam_unix.so use_first_pass
auth required pam_listfile.so \
onerr=succeed item=user sense=deny file=/etc/ftpusers
like. she ate. ๐
๐ง SEE ALSO ๐ง
pam.conf(5), pam.d(5), pam(8) โ go read the fam too, iykyk ๐
๐ AUTHOR ๐
pam_ftp was written by Andrew G. Morgan <morgan@kernel.org>. ty for your service king ๐ซถ
and that's a wrap on PAM_FTP(8) bestie!! this page came from the Linux-PAM crew, dated 09/27/2026 โ so yeah, she's current, she's giving documentation main character energy, and she's fully yours now. go forth and configure responsibly ๐
โจ๐
๐ฆ where this page comes from
- arch rolling: pam 1.7.3-1 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms