1PAM_FTP(8)                     Linux-PAM Manual                     PAM_FTP(8)
2
3
4

NAME

6       pam_ftp - PAM module for anonymous access module
7

SYNOPSIS

9       pam_ftp.so [debug] [ignore] [users=XXX,YYY,...]
10

DESCRIPTION

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

OPTIONS

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 one
34          of these usernames the returned username is set to the first in the
35          list: XXX.
36

MODULE SERVICES PROVIDED

38       Only the auth service is supported.
39

RETURN VALUES

41       PAM_SUCCESS
42          The authentication was successfull.
43
44       PAM_USER_UNKNOWN
45          User not known.
46

EXAMPLES

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

SEE ALSO

64       pam.conf(5), pam.d(8), pam(8)
65

AUTHOR

67       pam_ftp was written by Andrew G. Morgan <morgan@kernel.org>.
68
69
70
71Linux-PAM Manual                  06/09/2006                        PAM_FTP(8)
Impressum