| 1 | /**************************************************************************** |
|---|
| 2 | |
|---|
| 3 | Copyright (c) 1999,2000,2001 WU-FTPD Development Group. |
|---|
| 4 | All rights reserved. |
|---|
| 5 | |
|---|
| 6 | Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994 |
|---|
| 7 | The Regents of the University of California. |
|---|
| 8 | Portions Copyright (c) 1993, 1994 Washington University in Saint Louis. |
|---|
| 9 | Portions Copyright (c) 1996, 1998 Berkeley Software Design, Inc. |
|---|
| 10 | Portions Copyright (c) 1989 Massachusetts Institute of Technology. |
|---|
| 11 | Portions Copyright (c) 1998 Sendmail, Inc. |
|---|
| 12 | Portions Copyright (c) 1983, 1995, 1996, 1997 Eric P. Allman. |
|---|
| 13 | Portions Copyright (c) 1997 by Stan Barber. |
|---|
| 14 | Portions Copyright (c) 1997 by Kent Landfield. |
|---|
| 15 | Portions Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997 |
|---|
| 16 | Free Software Foundation, Inc. |
|---|
| 17 | |
|---|
| 18 | Use and distribution of this software and its source code are governed |
|---|
| 19 | by the terms and conditions of the WU-FTPD Software License ("LICENSE"). |
|---|
| 20 | |
|---|
| 21 | If you did not receive a copy of the license, it may be obtained online |
|---|
| 22 | at http://www.wu-ftpd.org/license.html. |
|---|
| 23 | |
|---|
| 24 | $Id: config.h.in,v 1.15.2.1 2001/11/29 17:10:57 wuftpd Exp $ |
|---|
| 25 | |
|---|
| 26 | ****************************************************************************/ |
|---|
| 27 | |
|---|
| 28 | /* |
|---|
| 29 | * Top level config file... These values will be adjusted by autoconf. |
|---|
| 30 | * $Id: config.h.in,v 1.15.2.1 2001/11/29 17:10:57 wuftpd Exp $ |
|---|
| 31 | */ |
|---|
| 32 | |
|---|
| 33 | /* |
|---|
| 34 | * allow "upload" keyword in ftpaccess |
|---|
| 35 | */ |
|---|
| 36 | |
|---|
| 37 | #undef UPLOAD |
|---|
| 38 | |
|---|
| 39 | /* |
|---|
| 40 | * allow "overwrite" keyword in ftpaccess. |
|---|
| 41 | */ |
|---|
| 42 | |
|---|
| 43 | #undef OVERWRITE |
|---|
| 44 | |
|---|
| 45 | /* |
|---|
| 46 | * allow "allow/deny" for individual users. |
|---|
| 47 | */ |
|---|
| 48 | |
|---|
| 49 | #undef HOST_ACCESS |
|---|
| 50 | |
|---|
| 51 | /* |
|---|
| 52 | * log failed login attempts |
|---|
| 53 | */ |
|---|
| 54 | |
|---|
| 55 | #undef LOG_FAILED |
|---|
| 56 | |
|---|
| 57 | /* |
|---|
| 58 | * log login attempts that fail because of class connection |
|---|
| 59 | * limits. Busy servers may want to prevent this logging |
|---|
| 60 | * since it can fill up the log file and put a high load on |
|---|
| 61 | * syslog. |
|---|
| 62 | */ |
|---|
| 63 | #undef LOG_TOOMANY |
|---|
| 64 | |
|---|
| 65 | /* |
|---|
| 66 | * allow use of private file. (for site group and site gpass) |
|---|
| 67 | * NO_PRIVATE |
|---|
| 68 | * Define this if you don't want to use the private authentication databases. |
|---|
| 69 | */ |
|---|
| 70 | |
|---|
| 71 | #undef NO_PRIVATE |
|---|
| 72 | |
|---|
| 73 | /* |
|---|
| 74 | * Try once more on failed DNS lookups (to allow far away connections |
|---|
| 75 | * which might resolve slowly) |
|---|
| 76 | */ |
|---|
| 77 | |
|---|
| 78 | #undef DNS_TRYAGAIN |
|---|
| 79 | |
|---|
| 80 | /* |
|---|
| 81 | * ANON_ONLY |
|---|
| 82 | * Permit only anonymous logins... disables all other type |
|---|
| 83 | * See FIXES-2.4-HOBBIT for more information on this option. |
|---|
| 84 | */ |
|---|
| 85 | |
|---|
| 86 | #undef ANON_ONLY |
|---|
| 87 | |
|---|
| 88 | /* |
|---|
| 89 | * PARANOID |
|---|
| 90 | * Disable "questionable" functions |
|---|
| 91 | * See FIXES-2.4-HOBBIT for more information on this option. |
|---|
| 92 | */ |
|---|
| 93 | |
|---|
| 94 | #undef PARANOID |
|---|
| 95 | |
|---|
| 96 | /* |
|---|
| 97 | * SKEY |
|---|
| 98 | * Add SKEY support -- REQUIRES SKEY libraries |
|---|
| 99 | * See FIXES-2.4-HOBBIT for more information on this option. |
|---|
| 100 | */ |
|---|
| 101 | |
|---|
| 102 | #undef SKEY |
|---|
| 103 | |
|---|
| 104 | /* |
|---|
| 105 | * OPIE |
|---|
| 106 | * One-time Passwords In Everything (OPIE) |
|---|
| 107 | * Add OPIE support -- REQUIRES OPIE libraries |
|---|
| 108 | */ |
|---|
| 109 | |
|---|
| 110 | #if !defined (LINUX) /* Linux autodetects OPIE */ |
|---|
| 111 | #undef OPIE |
|---|
| 112 | #endif |
|---|
| 113 | |
|---|
| 114 | /* |
|---|
| 115 | * ALTERNATE_CD |
|---|
| 116 | * Causes "cd ~" to return the chroot-relative directory instead of the |
|---|
| 117 | * real directory. |
|---|
| 118 | */ |
|---|
| 119 | #undef ALTERNATE_CD |
|---|
| 120 | |
|---|
| 121 | /* |
|---|
| 122 | * UNRESTRICTED_CHMOD |
|---|
| 123 | * If defined, any valid value for the mode will be accepted. |
|---|
| 124 | * Otherwise, only values between 0 and 777 are accepted. |
|---|
| 125 | */ |
|---|
| 126 | #undef UNRESTRICTED_CHMOD |
|---|
| 127 | |
|---|
| 128 | /* |
|---|
| 129 | * USE_RFC931 |
|---|
| 130 | * Define this if you want to use RFC 931 'authentication' - this improves |
|---|
| 131 | * the logging at the cost of a possible slight delay in connection. |
|---|
| 132 | */ |
|---|
| 133 | #undef USE_RFC931 |
|---|
| 134 | |
|---|
| 135 | /* |
|---|
| 136 | * BUFFER_SIZE |
|---|
| 137 | * You can specify the buffer size for binary transfers; the defaults |
|---|
| 138 | * are often far too small for efficiency. |
|---|
| 139 | */ |
|---|
| 140 | #undef BUFFER_SIZE |
|---|
| 141 | |
|---|
| 142 | /* |
|---|
| 143 | * If you want to specify the syslog facility, you should modify CFLAGS in |
|---|
| 144 | * the appropriate src/makefile/Makefile.*. |
|---|
| 145 | */ |
|---|
| 146 | |
|---|
| 147 | /* If you want to set the paths where the configuration files, pids and logs |
|---|
| 148 | * are stored, you should inspect src/pathnames.h and modify the appropriate |
|---|
| 149 | * src/config/config.*. |
|---|
| 150 | */ |
|---|
| 151 | |
|---|
| 152 | /* |
|---|
| 153 | * RATIO |
|---|
| 154 | * Support for Upload/Download ratios (may download x bytes for uploading 1 byte) |
|---|
| 155 | */ |
|---|
| 156 | #undef RATIO |
|---|
| 157 | |
|---|
| 158 | /* |
|---|
| 159 | * OTHER_PASSWD |
|---|
| 160 | * Support for using alternative passwd/shadow files |
|---|
| 161 | */ |
|---|
| 162 | #undef OTHER_PASSWD |
|---|
| 163 | |
|---|
| 164 | /* |
|---|
| 165 | * DAEMON |
|---|
| 166 | * If ftpd called with -D then run as a standalone daemon listing on the |
|---|
| 167 | * ftp port. This can speed up ftpd response as all ftpd then needs to |
|---|
| 168 | * do is fork off a copy to handle an incoming request. Under inetd |
|---|
| 169 | * a new copy has to be opened and exec'd. |
|---|
| 170 | */ |
|---|
| 171 | #undef DAEMON |
|---|
| 172 | |
|---|
| 173 | /* |
|---|
| 174 | * MAX_BACKLOG |
|---|
| 175 | * Only used in DAEMON mode. |
|---|
| 176 | * This is second parameter to listen. It defines the number of incoming |
|---|
| 177 | * processes to allow to backlog, prior to being accept() processing them, |
|---|
| 178 | * before rejecting. |
|---|
| 179 | */ |
|---|
| 180 | #undef MAX_BACKLOG |
|---|
| 181 | |
|---|
| 182 | /* |
|---|
| 183 | * MAPPING_CHDIR |
|---|
| 184 | * Keep track of the path the user has chdir'd into and respond with |
|---|
| 185 | * that to pwd commands. This is to avoid having the absolue disk |
|---|
| 186 | * path returned. This helps avoid returning dirs like '.1/fred' |
|---|
| 187 | * when lots of disks make up the ftp area. |
|---|
| 188 | */ |
|---|
| 189 | |
|---|
| 190 | #undef MAPPING_CHDIR |
|---|
| 191 | |
|---|
| 192 | /* |
|---|
| 193 | * THROUGHPUT |
|---|
| 194 | * Keep track of total throughput for the user and limit if required. |
|---|
| 195 | */ |
|---|
| 196 | |
|---|
| 197 | #undef THROUGHPUT |
|---|
| 198 | |
|---|
| 199 | /* |
|---|
| 200 | * TRANSFER_COUNT |
|---|
| 201 | * Keep track of total bytes for statistics. |
|---|
| 202 | */ |
|---|
| 203 | |
|---|
| 204 | #undef TRANSFER_COUNT |
|---|
| 205 | |
|---|
| 206 | /* |
|---|
| 207 | * TRANSFER_LIMIT |
|---|
| 208 | * Limit file and bytes transferred in a session. |
|---|
| 209 | */ |
|---|
| 210 | |
|---|
| 211 | #undef TRANSFER_LIMIT |
|---|
| 212 | |
|---|
| 213 | /* |
|---|
| 214 | * NO_SUCKING_NEWLINES |
|---|
| 215 | * Don't suppress some extra blank lines on messages and banners. |
|---|
| 216 | */ |
|---|
| 217 | |
|---|
| 218 | #undef NO_SUCKING_NEWLINES |
|---|
| 219 | |
|---|
| 220 | /* |
|---|
| 221 | * HELP_CRACKERS |
|---|
| 222 | * Define this to help crackers break into your system by letting them |
|---|
| 223 | * figure out which user names exist to guess passwords on. |
|---|
| 224 | */ |
|---|
| 225 | |
|---|
| 226 | #undef HELP_CRACKERS |
|---|
| 227 | |
|---|
| 228 | /* |
|---|
| 229 | * VERBOSE_ERROR_LOGING |
|---|
| 230 | * Log all problems with USER and PASS as well as all rejected commands |
|---|
| 231 | * and denied uploads/downloads. |
|---|
| 232 | */ |
|---|
| 233 | |
|---|
| 234 | #undef VERBOSE_ERROR_LOGING |
|---|
| 235 | |
|---|
| 236 | /* |
|---|
| 237 | * IGNORE_NOOP |
|---|
| 238 | * Undefine this to let NOOP reset the idle timeout. |
|---|
| 239 | */ |
|---|
| 240 | |
|---|
| 241 | #undef IGNORE_NOOP |
|---|
| 242 | |
|---|
| 243 | /* |
|---|
| 244 | * XFERLOG_REALPATH |
|---|
| 245 | * Define this to log the real path rather than the chroot-relative path for |
|---|
| 246 | * files named in the xferlog. |
|---|
| 247 | */ |
|---|
| 248 | |
|---|
| 249 | #undef XFERLOG_REALPATH |
|---|
| 250 | |
|---|
| 251 | /* |
|---|
| 252 | * CLOSED_VIRTUAL_SERVER |
|---|
| 253 | * Undefine this to allow real and non-owner guests to log in on a virutal server's address. |
|---|
| 254 | */ |
|---|
| 255 | #undef CLOSED_VIRTUAL_SERVER |
|---|
| 256 | |
|---|
| 257 | /* |
|---|
| 258 | * NO_DNS |
|---|
| 259 | * Define this to skip DNS lookups. If the remote host name is needed, the |
|---|
| 260 | * daemon uses the IP numbers instead. 'deny !nameserved' will always be |
|---|
| 261 | * true (denying access) if this patch is enabled. |
|---|
| 262 | * |
|---|
| 263 | * This option is intended soley for very busy FTP sites where the added |
|---|
| 264 | * security of DNS lookups is overshadowed by the speed and resource penalties. |
|---|
| 265 | * |
|---|
| 266 | * Disabling DNS lookups removes all protections against spoofing, making |
|---|
| 267 | * remote user authentication virtually useless. This option should only be |
|---|
| 268 | * used on anonymous FTP servers. |
|---|
| 269 | * |
|---|
| 270 | * If you're not *absolutely sure* you need this, don't enable it. |
|---|
| 271 | */ |
|---|
| 272 | #undef NO_DNS |
|---|
| 273 | |
|---|
| 274 | /* |
|---|
| 275 | * Some people don't like PASV and want to disable it. Whatever. |
|---|
| 276 | * PORT can be abused to attack other hosts. Let's give the option to |
|---|
| 277 | * disable one or the other. We'll ignore DISABLE_PASV if you defined |
|---|
| 278 | * DISABLE_PORT (hey, you gotta have at least one!). |
|---|
| 279 | */ |
|---|
| 280 | #undef DISABLE_PORT |
|---|
| 281 | #undef DISABLE_PASV |
|---|
| 282 | |
|---|
| 283 | /* |
|---|
| 284 | * Define this to suppress messages about PID locks causing the daemon to |
|---|
| 285 | * sleep. This should only be needed at busy sites. |
|---|
| 286 | */ |
|---|
| 287 | #undef NO_PID_SLEEP_MSGS |
|---|
| 288 | |
|---|
| 289 | /* |
|---|
| 290 | * Define this to require the remove end of a PASV connection to have the |
|---|
| 291 | * same IP as the control connection. This limits, but does not eliminate, |
|---|
| 292 | * the risk of PASV port race stealing the connection. It also is non-RFC |
|---|
| 293 | * compliant, so it may cause problems for some client sites. |
|---|
| 294 | */ |
|---|
| 295 | #undef FIGHT_PASV_PORT_RACE |
|---|
| 296 | |
|---|
| 297 | /* |
|---|
| 298 | * Define this to completely disable anonymous FTP access. |
|---|
| 299 | */ |
|---|
| 300 | #undef NO_ANONYMOUS_ACCESS |
|---|
| 301 | |
|---|
| 302 | /* |
|---|
| 303 | * Define this to have an ls command compiled into the daemon. That way you |
|---|
| 304 | * don't need to put statically linked ls's into every chroot directory. |
|---|
| 305 | */ |
|---|
| 306 | #undef INTERNAL_LS |
|---|
| 307 | |
|---|
| 308 | /* |
|---|
| 309 | * Define this if you want the internal ls to display UIDs/GIDs rather than |
|---|
| 310 | * user/group names. This is faster, but doesn't look as nice. |
|---|
| 311 | */ |
|---|
| 312 | #undef LS_NUMERIC_UIDS |
|---|
| 313 | |
|---|
| 314 | /* |
|---|
| 315 | * Define this if you want to hide setuid bits in the internal ls |
|---|
| 316 | * this might be a good idea for security. |
|---|
| 317 | */ |
|---|
| 318 | #undef HIDE_SETUID |
|---|
| 319 | |
|---|
| 320 | /* |
|---|
| 321 | * Undefine this if you don't want the enhanced DNS (resolver) features; |
|---|
| 322 | * or if you cannot find libresolv on your system. |
|---|
| 323 | */ |
|---|
| 324 | #undef HAVE_LIBRESOLV |
|---|
| 325 | |
|---|
| 326 | /* |
|---|
| 327 | * Define this if you want to support virtual servers |
|---|
| 328 | */ |
|---|
| 329 | #undef VIRTUAL |
|---|
| 330 | |
|---|
| 331 | /* |
|---|
| 332 | * Define this if you want to be able to receive mail on anonymous |
|---|
| 333 | * uploads |
|---|
| 334 | */ |
|---|
| 335 | #undef MAIL_ADMIN |
|---|
| 336 | |
|---|
| 337 | /* |
|---|
| 338 | * Config files in /etc by default |
|---|
| 339 | */ |
|---|
| 340 | #undef USE_ETC |
|---|
| 341 | |
|---|
| 342 | /* |
|---|
| 343 | * Define this to support quota mechanisms... |
|---|
| 344 | */ |
|---|
| 345 | #undef QUOTA |
|---|
| 346 | |
|---|
| 347 | /* |
|---|
| 348 | * Define this to revert the NLST command to showing directories. |
|---|
| 349 | * |
|---|
| 350 | * This will cause mget to have errors when it attempts to RETR the |
|---|
| 351 | * directory name (which is not a RETRievable object) but will revert |
|---|
| 352 | * the NLST command enough to quell complains from Solaris command- |
|---|
| 353 | * line FTP client users. |
|---|
| 354 | */ |
|---|
| 355 | #undef NLST_SHOWS_DIRS |
|---|