home *** CD-ROM | disk | FTP | other *** search
/ ftp.ncftp.com / ftp.ncftp.com.zip / ftp.ncftp.com / ncftpd / end_of_life / ncftpd-2.8.7-freebsd3.5.1-i386-export.tar.gz / ncftpd-2.8.7-freebsd3.5.1-i386-export.tar / ncftpd-2.8.7 / conf / general.cf-dist < prev   
Text File  |  2011-01-17  |  12KB  |  327 lines

  1. #-------------------------------------------------------------------------
  2. # NcFTPd 2.8.7 general configuration file.
  3. # Blank lines and lines starting with a `#' character are ignored.
  4. #
  5. # This is one of two types of configuration files for use with NcFTPd.
  6. # Options that are configurable for each domain/virtual host are in 
  7. # configuration files specific to each domain, and not this file.
  8. #
  9. # Not ALL configuration options are listed here; consult the online
  10. # documentation at http://www.ncftp.com/ncftpd/doc/ for more.
  11. #
  12. # NOTE: If you change this file while NcFTPd is running, the changes
  13. # DO NOT TAKE EFFECT until you fully *RESTART* NcFTPd, which is usually
  14. # accomplished by running /usr/local/sbin/restart_ncftpd.  For details
  15. # on how to do that, see http://www.ncftp.com/ncftpd/doc/faq/admin.html.
  16. #-------------------------------------------------------------------------
  17.  
  18.  
  19.  
  20. # Some people simply copy the template general.cf and domain.cf and start
  21. # up the server.  The following line is present so that those people will
  22. # get an error and realize that they actually need to do some configuration
  23. # before starting the server. So, delete the line and read on!
  24. #
  25. REMOVE-THIS-LINE-AND-CONFIGURE-THE-CONFIG-FILES-BEFORE-PROCEEDING
  26.  
  27.  
  28.  
  29. # The server can log each transfer.  If you want this, set the `log-xfers'
  30. # variable to `yes'.  The logs can fill up disk space in a hurry, so you
  31. # may want to turn this off or at least keep an eye on the logs.
  32. #
  33. # The name of the log is set in the domain configuration file, and can
  34. # be different for each domain.
  35. #
  36. log-xfers=yes
  37.  
  38.  
  39.  
  40. # The server can log each session (one line summary of a user's activity).
  41. # If you want this, set the `log-sessions' variable to `yes'.
  42. #
  43. # The name of the log is set in the domain configuration file, and can
  44. # be different for each domain.
  45. #
  46. log-sessions=yes
  47.  
  48.  
  49.  
  50. # Set the `log-misc' variable to the specification for the miscellaneous
  51. # logs.  These logs will have error messages or debugging information
  52. # in them.
  53. #
  54. # The name of this log is set here and is shared by all domains.
  55. #
  56. log-misc=/var/log/ncftpd/misc.%Y%m%d
  57.  
  58. # another example: log-misc=/var/log/ncftpd/%Y%m%d/misc.%Y%m%d.%H
  59.  
  60.  
  61.  
  62. # Set the `log-stat' variable to the specification for the stat logs.
  63. # These are near real-time reports that log a summary of each 15-minute
  64. # interval.
  65. #
  66. # These logs are only required if you want to use the NcFTPd Reporting
  67. # Package, so you can comment this out if you like.  Also, if your system
  68. # does not have shared-memory (BSD/OS 3.x, SunOS 4.x) these logs will not be
  69. # generated.
  70. #
  71. log-stat=/var/log/ncftpd/stat.%Y%m
  72.  
  73.  
  74.  
  75. # You can configure the ownership, group, and permissions for log files
  76. # and log directories created.  If you plan on using the NcFTPd Reporting
  77. # Package, you should have the log files owned by the web server user.
  78. #
  79. log-owner=www
  80. log-group=www
  81. log-umask=007
  82.  
  83.  
  84.  
  85. # Set the `max-users' variable to the maximum number of users
  86. # that can be logged on (to all domains) at a time.  (Note: the default
  87. # value as shown below is 50, but you can set this higher than 50
  88. # since the evaluation version does not limit you to 50.)
  89. #
  90. max-users=50
  91.  
  92.  
  93.  
  94. # Set the `min-users' variable to be an estimate of the minimum number
  95. # of users you expect to be logged on.  This number corresponds to the
  96. # number of ncftpd child processes that persist.  When the server
  97. # has `min-users' or less child processes, the server doesn't need
  98. # to spawn a new child.  Sites with heavy volume should set the minimum
  99. # closer to the user limit for best performance.
  100. #
  101. # (Note:  since there are separate "master" and "logger" processes,
  102. # there will always be at least (min-users + 2) processes.)
  103. #
  104. min-users=5
  105.  
  106.  
  107.  
  108. # The server logs the remote user's host address.  The default is to
  109. # leave the addresses represented as dotted-decimal (i.e. 129.93.33.1)
  110. # but if you want you can configure the server so that it looks those
  111. # addresses up to get a symbolic host name (i.e. cse.unl.edu).
  112. #
  113. # I recommend that you set the `dns-lookup' variable to `no' because
  114. # doing the lookups can cause significant performance degradation (and
  115. # you can always look up the ones you want later).  If you want to do it
  116. # anyway set the `dns-lookup' variable to `yes'.
  117. dns-lookup=no
  118.  
  119.  
  120.  
  121. # A properly administrated anonymous FTP hierarchy will use the UNIX
  122. # file and directory permissions properly.  Unfortunately it is easy
  123. # to make a mistake which would leave your system vulnerable.  One case
  124. # is where there is a public-writeable directory in your FTP area.
  125. # Abusers can then upload bootleg software, pornographic material, etc.,
  126. # onto your machine.
  127. #
  128. # I recommend that you leave the `a-write-permission' variable set to
  129. # `no' for this reason.  This variable affects anonymous users only,
  130. # and prevents them from uploading, deleting, or creating directories,
  131. # no matter what the permissions on the file system are set to (except
  132. # to the `incoming' directory, described below).  If you know what
  133. # you're doing, you can set it to `yes' though.
  134. #
  135. a-write-permission=no
  136.  
  137.  
  138.  
  139. # The exception to `a-write-permission' is the `incoming' directory.
  140. # This directory, if present, allows anonymous users to upload files
  141. # into it.  There is special handling code for this directory.  In
  142. # addition to upload ability, the server also prevents users from
  143. # downloading from it.  It also prevents existing files from being
  144. # overwritten.  The incoming directory serves as a drop-off-only point
  145. # for your site.
  146. #
  147. # You can use this directory and not have to worry about abusers uploading
  148. # stuff for downloading by other abusers.  The good thing about the
  149. # incoming directory, is that it works with the `a-write-permission' in
  150. # the fact that uploads aren't possible _except_ to the incoming directory,
  151. # no matter what the permissions are really set to on other directories.
  152. #
  153. # If you want an incoming directory tree, create a directory named
  154. # "incoming" anywhere in the anonymous FTP directory tree.
  155. # Because of the special treatment, it is okay to leave it as mode 777
  156. # (drwxrwxrwx) when used with NcFTPd.
  157.  
  158.  
  159.  
  160. # One inconvenience in the FTP protocol is that it does not provide a
  161. # seamless way to download whole directory trees.  You can let users
  162. # download directories by enabling what is termed `on the fly tar/compress'.
  163. #
  164. # If a user wants to download the entire contents of a /pub/stuff directory,
  165. # the user can use his FTP client to say "get /pub/stuff.tar".  NcFTPd
  166. # looks for that special case, and when the user does that it sends a TAR
  167. # file of /pub/stuff down the data connection.
  168. #
  169. # This feature is off by default because it degrades performance of your
  170. # machine, especially if it is used a lot.  It also causes more network
  171. # bandwidth to be used because users can easily grab large amounts of data.
  172. #
  173. # To turn this on, you need to set the `tar' variable to the absolute path
  174. # of the tar program.
  175. #
  176. #tar=/usr/bin/tar
  177.  
  178.  
  179.  
  180. # To accompany the on-the-fly TAR, you can also let them have the TAR file
  181. # compressed or gzipped (i.e. get /pub/stuff.tar.Z).
  182. #
  183. # Again, I don't recommend turning this on unless your users' usage pattern
  184. # suggests they need to download directories.  Compress and Gzip worsen
  185. # the problem because they use large amounts of memory while they run.
  186. # On a busy server, one person doing a get tar.Z could slow everyone else
  187. # down.
  188. #
  189. # You can let them use gzip by setting `gzip' to the absolute pathname of it.
  190. # Similarly, you can let them compress by setting `compress'.
  191. #
  192. #compress=/usr/bin/compress
  193. #gzip=/usr/bin/gzip
  194.  
  195.  
  196.  
  197.  
  198. # You can control which client hosts contact your server by using
  199. # TCP Wrappers' access control files.  Consult the documentation
  200. # that comes with TCP Wrappers (ftp://ftp.win.tue.nl/pub/security/)
  201. # for information on how to configure the access controls.
  202. #
  203. # Restrictions:
  204. #   The configuration files must be named /etc/hosts.allow
  205. #   and/or /etc/hosts.deny;
  206. #
  207. #   The "twist" option is not supported;
  208. #
  209. #   Service specific access for NcFTPd can be controlled by
  210. #   the "NcFTPd:" service name.
  211. #
  212. # Please note that the author of TCP Wrappers (Wietse Venema) is
  213. # not responsible for NcFTPd's implementation -- if you have
  214. # problems with NcFTPd but your other services work fine with
  215. # your TCP Wrappers please contact us first (http://www.ncftp.com/contact/).
  216. #
  217. # Also note that turning this feature on invokes a substantial
  218. # performance penalty.  If you're running an anonymous-only site
  219. # you probably don't want to turn anyone away anyway.
  220. #
  221. # Using this option also implicitly enables "dns-lookups=yes", since
  222. # TCP Wrappers uses DNS.
  223. #
  224. tcp-wrappers=no
  225.  
  226.  
  227.  
  228. #-------------------------------------------------------------------------
  229. # Note:  Things in this section probably do not need to be configured,
  230. # so if you're in a hurry you can stop here and trust the defaults.
  231. # These are things whose defaults are good enough, but some people
  232. # may want to tune anyway.
  233. #-------------------------------------------------------------------------
  234.  
  235.  
  236. # When a remote user connects, there is a timer that controls how long
  237. # they have to login succesfully (from the time of the connection) or
  238. # be disconnected.
  239. #
  240. #login-timeout=15
  241.  
  242.  
  243.  
  244. # After a period of inactivity, a remote user is logged off automatically.
  245. # The timer (in seconds) is configurable by setting `idle-timeout' here.
  246. #
  247. #idle-timeout=300
  248.  
  249.  
  250.  
  251. # NcFTPd considers a data transfer timed-out and aborts the session after
  252. # this period (in seconds) of no data received.
  253. #
  254. #xfer-timeout=3600
  255.  
  256.  
  257.  
  258. # When establishing a passive data connection from a remote client, or
  259. # accepting an active data connection to a remote client, the server waits
  260. # this period (in seconds) before giving up.
  261. #
  262. #conn-timeout=15
  263.  
  264.  
  265.  
  266. # The server needs to write the PIDs of its processes into a run
  267. # file.  This can also be useful if you want to kill all the processes, which
  268. # you can do by sending the main process a SIGTERM (and it will terminate
  269. # the child processes for you).
  270. #
  271. # This file is actually a shell script, which when run, kills all the
  272. # processes.
  273. #
  274. pid-file=/var/run/ncftpd.pid.sh
  275.  
  276.  
  277.  
  278. # The built-in /bin/ls can be configured whether to display user and group
  279. # names for the long-listing format.  The default setting is to not
  280. # print those for anonymous users.  Not only is it faster, since it
  281. # doesn't need to waste time looking them up, it is more secure for you
  282. # since you don't want to give the world a list of valid usernames for
  283. # your system.
  284. #
  285. # Set the `a-ls-names' variable to `yes' if you want to display names
  286. # for anonymous users.  Set the `u-ls-names' variable likewise, for
  287. # the non-anonymous users.
  288. #
  289. a-ls-names=no
  290. u-ls-names=yes
  291.  
  292.  
  293.  
  294. # You may want to prevent inconsiderate users from FTPing multiple
  295. # times to the server simultaneously.  By setting ``max-users-per-ip''
  296. # a number greater than 0, you can limit how many different FTP
  297. # sessions a user can have at the same time.
  298. #
  299. # This feature is only available on platforms with shared-memory,
  300. # i.e. everyone but SunOS 4.x and BSD/OS 3.x.
  301. #
  302. # The default is zero, which means no limit.  The reason for this is
  303. # that firewalls and proxies on the client side serving multiple
  304. # clients appear to be from the same IP address.  Therefore, it is
  305. # possible for two users from the same remote site could get counted
  306. # as the same user, which may not be desirable.
  307. #
  308. # Also note that some FTP clients always try to use more than one
  309. # session as a "feature", and if you set this limit too low you may
  310. # run into problems where these FTP client programs break because they
  311. # expect that functionality to work.
  312. #
  313. #max-users-per-ip=3
  314.  
  315.  
  316.  
  317. # Set the `port' variable to the port number for the FTP control
  318. # connection for the anonymous server.  Most of the time you will want
  319. # to set this to `21' which is the default FTP port that remote clients
  320. # will try to connect to.
  321. #
  322. port=21
  323.  
  324. #eof
  325.