# pam_ftp(8) - man - phpMan

[PAM_FTP(8)](https://www.chedong.com/phpMan.php/man/PAMFTP/8/markdown)                                Linux-PAM Manual                                [PAM_FTP(8)](https://www.chedong.com/phpMan.php/man/PAMFTP/8/markdown)



## NAME
       pam_ftp - PAM module for anonymous access module

## SYNOPSIS
       **pam**___**ftp.so** [debug] [ignore] [users=_XXX,YYY,_...]

## DESCRIPTION
       pam_ftp is a PAM module which provides a pluggable anonymous ftp mode of access.

       This module intercepts the user's name and password. If the name is _ftp_ or _anonymous_, the
       user's password is broken up at the _@_ delimiter into a _PAM_RUSER_ and a _PAM_RHOST_ part; these
       pam-items being set accordingly. The username (_PAM_USER_) is set to _ftp_. In this case the
       module succeeds. Alternatively, the module sets the _PAM_AUTHTOK_ item with the entered
       password and fails.

       This module is not safe and easily spoofable.

## OPTIONS
### debug
           Print debug information.

### ignore
           Pay no attention to the email address of the user (if supplied).

       **ftp=**_XXX,YYY,..._
           Instead of _ftp_ or _anonymous_, provide anonymous login to the comma separated list of
           users: _XXX,YYY,..._. Should the applicant enter one of these usernames the returned
           username is set to the first in the list: _XXX_.

## MODULE TYPES PROVIDED
       Only the **auth** module type is provided.

## RETURN VALUES
       PAM_SUCCESS
           The authentication was successful.

       PAM_USER_UNKNOWN
           User not known.

## EXAMPLES
       Add the following line to /etc/pam.d/ftpd to handle ftp style anonymous login:

           #
           # 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



## SEE ALSO
       [**pam.conf**(5)](https://www.chedong.com/phpMan.php/man/pam.conf/5/markdown), [**pam.d**(5)](https://www.chedong.com/phpMan.php/man/pam.d/5/markdown), [**pam**(7)](https://www.chedong.com/phpMan.php/man/pam/7/markdown)

## AUTHOR
       pam_ftp was written by Andrew G. Morgan <<morgan@kernel.org>>.



Linux-PAM Manual                             06/08/2020                                   [PAM_FTP(8)](https://www.chedong.com/phpMan.php/man/PAMFTP/8/markdown)
