pam_ftp.so
Andrew G. Morgan <morgan@parc.power.net>
Author.
authentication
prompts for email address of user; easily spoofed (XXX - needs work)
The purpose of this module is to provide a pluggable anonymous ftp mode of access.
debug
;
users=XXX,YYY,...
;
ignore
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 is set to
``ftp
''. In this case the module succeeds. Alternatively, the
module sets the PAM_AUTHTOK
item with the entered password and
fails.
The behavior of the module can be modified with the following flags:
debug
-
log more information to with syslog(3)
.
users=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
''.
ignore
-
pay no attention to the email address of the user (if supplied).
An example of the use of this module is provided in the configuration file section above. With care, this module could be used to provide new/temporary account anonymous login.