Home | History | Annotate | Download | only in in.ftpd
      1 #pragma ident	"%Z%%M%	%I%	%E% SMI"
      2 
      3 /****************************************************************************
      4   Copyright (c) 1999,2000 WU-FTPD Development Group.
      5   All rights reserved.
      6 
      7   Portions Copyright (c) 1980, 1985, 1988, 1989, 1990, 1991, 1993, 1994
      8     The Regents of the University of California.
      9   Portions Copyright (c) 1993, 1994 Washington University in Saint Louis.
     10   Portions Copyright (c) 1996, 1998 Berkeley Software Design, Inc.
     11   Portions Copyright (c) 1989 Massachusetts Institute of Technology.
     12   Portions Copyright (c) 1998 Sendmail, Inc.
     13   Portions Copyright (c) 1983, 1995, 1996, 1997 Eric P.  Allman.
     14   Portions Copyright (c) 1997 by Stan Barber.
     15   Portions Copyright (c) 1997 by Kent Landfield.
     16   Portions Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997
     17     Free Software Foundation, Inc.
     18 
     19   Use and distribution of this software and its source code are governed
     20   by the terms and conditions of the WU-FTPD Software License ("LICENSE").
     21 
     22   If you did not receive a copy of the license, it may be obtained online
     23   at http://www.wu-ftpd.org/license.html.
     24 
     25   $Id: pathnames.h.in,v 1.5 2000/07/01 18:04:21 wuftpd Exp $
     26 
     27 ****************************************************************************/
     28 
     29 #ifdef HAVE_PATHS_H
     30 #include <paths.h>
     31 #endif
     32 
     33 #ifdef SOLARIS_2
     34 #define UTMP_DIR        "/var/adm"
     35 #define WTMP_DIR        "/var/adm"
     36 #define LASTLOG_DIR     "/var/adm"
     37 #else
     38 #define UTMP_DIR        "/etc"
     39 #define WTMP_DIR        "/usr/adm"
     40 #define LASTLOG_DIR     "/usr/adm"
     41 #endif
     42 
     43 #define _PATH_EXECPATH  "/bin/ftp-exec"
     44 
     45 #ifdef VIRTUAL
     46 /*
     47    ** Virtual hosting requires to support many different types of customer.
     48    ** needs. There must be complete support for the various ftpd system files
     49    ** and their functionality.
     50    **
     51    ** Supported on an individual virtual host basis:
     52    ** ----------------------------------------------
     53    **  _PATH_FTPACCESS
     54    **  _PATH_FTPUSERS
     55    **  _PATH_PRIVATE
     56    **  _PATH_FTPHOSTS
     57    **  _PATH_CVT
     58    **
     59    ** Set in a site's ftpaccess file
     60    **  _PATH_XFERLOG
     61    **
     62    ** Supported on a site-wide basis:
     63    ** --------------------------------
     64    **  _PATH_FTPSERVERS
     65    **  _PATH_EXECPATH
     66    **  _PATH_PIDNAMES
     67    **  _PATH_UTMP
     68    **  _PATH_WTMP
     69    **  _PATH_LASTLOG
     70    **  _PATH_BSHELL
     71    **  _PATH_DEVNULL
     72    **
     73    ** Following are possibly overridden by VIRTUAL Hosting Configuation
     74    ** Edit accordingly.
     75  */
     76 #endif
     77 
     78 #undef _PATH_FTPUSERS
     79 #undef _PATH_FTPACCESS
     80 #undef _PATH_CVT
     81 #undef _PATH_PRIVATE
     82 
     83 #define _PATH_FTPUSERS  "/etc/ftpd/ftpusers"
     84 #define _PATH_FTPACCESS "/etc/ftpd/ftpaccess"
     85 #define _PATH_CVT       "/etc/ftpd/ftpconversions"
     86 #define _PATH_PRIVATE   "/etc/ftpd/ftpgroups"
     87 
     88 #ifdef VIRTUAL
     89 #undef _PATH_FTPSERVERS
     90 #define _PATH_FTPSERVERS "/etc/ftpd/ftpservers"
     91 #endif
     92 
     93 #ifdef  HOST_ACCESS
     94 #undef _PATH_FTPHOSTS
     95 #define _PATH_FTPHOSTS  "/etc/ftpd/ftphosts"
     96 #endif
     97 
     98 /* _PATH_FTPD_PIDFILE is only used if DAEMON is defined */
     99 
    100 #define _PATH_PIDNAMES  "/var/run/ftp.pids-%s"
    101 #define _PATH_FTPD_PID  "/var/run/ftpd.pid"
    102 #define _PATH_XFERLOG   "/var/log/xferlog"
    103 
    104 #ifndef _PATH_UTMP
    105 #ifdef UTMP_FILE
    106 #define _PATH_UTMP UTMP_FILE
    107 #endif
    108 #endif
    109 
    110 #ifndef _PATH_WTMP
    111 #ifdef WTMP_FILE
    112 #define _PATH_WTMP WTMP_FILE
    113 #endif
    114 #endif
    115 
    116 #if defined(sun) && defined(SOLARIS_2)
    117 #ifndef _PATH_UTMP
    118 #define _PATH_UTMP      UTMP_DIR"/utmp"
    119 #endif
    120 #ifndef _PATH_WTMP
    121 #define _PATH_WTMP      WTMP_DIR"/wtmp"
    122 #endif
    123 #ifndef _PATH_LASTLOG
    124 #define _PATH_LASTLOG   LASTLOG_DIR"/lastlog"
    125 #endif
    126 #else
    127 #ifndef _PATH_UTMP
    128 #define _PATH_UTMP      "/etc/utmp"
    129 #endif
    130 #ifndef _PATH_WTMP
    131 #define _PATH_WTMP      "/usr/adm/wtmp"
    132 #endif
    133 #ifndef _PATH_LASTLOG
    134 #define _PATH_LASTLOG   "/usr/adm/lastlog"
    135 #endif
    136 #endif
    137 
    138 #ifndef _PATH_BSHELL
    139 #define _PATH_BSHELL    "/bin/sh"
    140 #endif
    141 
    142 #ifndef _PATH_DEVNULL
    143 #define _PATH_DEVNULL   "/dev/null"
    144 #endif
    145 
    146 #ifndef _PATHS_DEFINED_
    147 extern char _path_ftpaccess[];
    148 extern char _path_ftpusers[];
    149 extern char _path_ftphosts[];
    150 extern char _path_private[];
    151 extern char _path_cvt[];
    152 #endif
    153