1PAM_FTP(8) Linux-PAM Manual PAM_FTP(8)
2
3
4
6 pam_ftp - PAM module for anonymous access module
7
9 pam_ftp.so [debug] [ignore] [users=XXX,YYY,...]
10
12 pam_ftp is a PAM module which provides a pluggable anonymous ftp mode
13 of access.
14
15 This module intercepts the user's name and password. If the name is ftp
16 or anonymous, the user's password is broken up at the @ delimiter into
17 a PAM_RUSER and a PAM_RHOST part; these pam-items being set
18 accordingly. The username (PAM_USER) is set to ftp. In this case the
19 module succeeds. Alternatively, the module sets the PAM_AUTHTOK item
20 with the entered password and fails.
21
22 This module is not safe and easily spoofable.
23
25 debug
26 Print debug information.
27
28 ignore
29 Pay no attention to the email address of the user (if supplied).
30
31 ftp=XXX,YYY,...
32 Instead of ftp or anonymous, provide anonymous login to the comma
33 separated list of users: XXX,YYY,.... Should the applicant enter
34 one of these usernames the returned username is set to the first in
35 the list: XXX.
36
38 Only the auth module type is provided.
39
41 PAM_SUCCESS
42 The authentication was successful.
43
44 PAM_USER_UNKNOWN
45 User not known.
46
48 Add the following line to /etc/pam.d/ftpd to handle ftp style anonymous
49 login:
50
51 #
52 # ftpd; add ftp-specifics. These lines enable anonymous ftp over
53 # standard UN*X access (the listfile entry blocks access to
54 # users listed in /etc/ftpusers)
55 #
56 auth sufficient pam_ftp.so
57 auth required pam_unix.so use_first_pass
58 auth required pam_listfile.so \
59 onerr=succeed item=user sense=deny file=/etc/ftpusers
60
61
62
64 pam.conf(5), pam.d(5), pam(8)
65
67 pam_ftp was written by Andrew G. Morgan <morgan@kernel.org>.
68
69
70
71Linux-PAM Manual 09/03/2021 PAM_FTP(8)