1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
#----------------------------------------------------------
# This is the main server configuration
[section] main
# allow connections from port 21
ftpport 21
# set maximum users to 200
maxusers 200
# log everything execpt debugging logs
logstrength 63
# set logfile
logfile /var/log/anon-ftpd.log
# set default timeout to 300 seconds
timeout 300
# set the file displayed on login
logindump /etc/issue.ftp
# allow anyhost to connect
ipacl A:*
# set admin email address
email user@hostname
# set groups to run through. Only need one in anonymous set up
group anonymous
# set scratchfile for inetd operation
scratchfile /var/lock/muddleftpd.scratch
# set hostname of the server
hostname testserver
#----------------------------------------------------------
# This configures the anonymous user
# Note: if the following doesn't work, then your computer
# needs the ftp user to be set.
[section] anonymous
# tell the server to accept people from any hostname
ipacl A:*
# tell the server to accept any username for this group
nameacl A:*
# tell the server to use chroot to the anonymous rootdir
chroot 1
# tell the server to use the ftp user as the anonymous rootdir
# and uid/gid
authparams ftp
# tell the server to use the anonymous authenticator, and
# accept any password.
authmethod anonymous
# disallow any changes to file permissions or upload umask
chmoding 0
# print out this file when the user logs in. It is not relative
# to anonymous's rootdir
welcome /home/ftp/welcome.msg
# display this file when a user changes into a new directory
cddump .message
# display this file when too many users are logged on
busydump /etc/msgs/msg.toomany
# set the umask files are uploaded with
umask 077
# give anonymous user read/list access everywhere and add/list access
# to the incoming folder. The / on the end of the second directive
# tells muddleftpd to apply ACL to a directory rather than a file.
access /:RLC
# uncomment the following line to allow uploads of file to the
# /incoming dir
# access /incoming/:ALC
|