home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1512 / config.h next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  5.1 KB  |  231 lines

  1. /*
  2.  * Configuration file for login.
  3.  *
  4.  *    @(#)config.h    2.2    00:22:54    5/25/90
  5.  */
  6.  
  7. /*
  8.  * Define DIALUP to use dialup password files
  9.  */
  10.  
  11. #define    DIALUP
  12.  
  13. /*
  14.  * Define SHADOWPWD to use shadow [ unreadable ] password file
  15.  */
  16.  
  17. #define    SHADOWPWD
  18.  
  19. /*
  20.  * Define DOUBLESIZE to use 16 character passwords
  21.  */
  22.  
  23. #define DOUBLESIZE
  24.  
  25. /*
  26.  * Define OBSCURE to include hard password testing code.
  27.  */
  28.  
  29. #define    OBSCURE
  30.  
  31. /*
  32.  * Define PASSLENGTH to be shortest legal password
  33.  */
  34.  
  35. #define    PASSLENGTH    5
  36.  
  37. /*
  38.  * Define NOBLANK if you want all passwords prompted for, including
  39.  * empty ones.
  40.  
  41. #undef    NOBLANK
  42.  
  43. /*
  44.  * Define MAXDAYS to be the default maximum number of days a password
  45.  * is valid for when converting to shadow passwords.  Define MINDAYS
  46.  * to be the minimum number of days before a password may be changed.
  47.  * See pwconv.c for more details.
  48.  */
  49.  
  50. #define    MAXDAYS    10000
  51. #define    MINDAYS    0
  52.  
  53. /*
  54.  * Define NDEBUG for production versions
  55.  */
  56.  
  57. #define    NDEBUG
  58.  
  59. /*
  60.  * Define HZ if login must set HZ value
  61.  */
  62.  
  63. #define    HZ    "HZ=50"
  64.  
  65. /*
  66.  * Define TZ if login must set timezone
  67.  *
  68.  * The first example sets the variable directly.  The
  69.  * second example names a file which is read to determine
  70.  * the proper value.  The file consists of a single line
  71.  * of the form 'TZ=zone-name'
  72.  */
  73.  
  74. /* #define    TZ    "TZ=CST6CDT" */
  75. #define    TZ    "/etc/tzname"
  76.  
  77. /*
  78.  * Define the default PATH and SUPATH here.  PATH is for non-privileged
  79.  * users, SUPATH is for root.  The first pair are for real trusting
  80.  * systems, the second pair are for the paranoid ...
  81.  */
  82.  
  83. /* #define    PATH    "PATH=:/bin:/usr/bin"    */
  84. /* #define    SUPATH    "PATH=:/bin:/usr/bin:/etc" */
  85. #define    PATH    "PATH=/bin:/usr/bin"
  86. #define    SUPATH    "PATH=/bin:/usr/bin:/etc"
  87.  
  88. /*
  89.  * Define the mailbox directory
  90.  */
  91.  
  92. #define    MAILDIR    "/usr/spool/mail/"
  93.  
  94. /*
  95.  * Define AGING if you want the password aging checks made.
  96.  */
  97.  
  98. #define    AGING
  99.  
  100. /*
  101.  * Define MAILCHECK if you want the mailbox checked for new mail
  102.  *
  103.  * One of two messages are printed - `You have new mail.' or
  104.  * `You have mail.'.
  105.  */
  106.  
  107. #define    MAILCHECK
  108.  
  109. /*
  110.  * Define CONSOLE if you want ROOT restricted to a particular terminal.
  111.  *
  112.  * Use the name of the tty line if you only want a single line, or use
  113.  * the name of the file containing the permissible ports if you wish to
  114.  * allow root logins on more than one port.
  115.  */
  116.  
  117. /* #define    CONSOLE    "console"    /* root on /dev/console only */
  118. #define    CONSOLE    "/etc/consoles"        /* check /etc/consoles for a list */
  119.  
  120. /*
  121.  * Define NOLOGINS if you want to be able to deny non-root users logins.
  122.  * Logins will not be permitted if this file exists.
  123.  */
  124.  
  125. #define    NOLOGINS    "/etc/nologin"
  126.  
  127. /*
  128.  * Define NOUSE if you want to be able to declare accounts which can't
  129.  * be logged into.  Define NOLOGIN if you want it to be an su-only account.
  130.  */
  131.  
  132. #define    NOUSE    "NOUSE"
  133. #define    NOLOGIN    "NOLOGIN"
  134.  
  135. /*
  136.  * Define MOTD if you want the message of the day (/etc/motd) printed
  137.  * at login time.
  138.  */
  139.  
  140. #define    MOTD
  141.  
  142. /*
  143.  * Define HUSHLOGIN if you want the code added to avoid printing the
  144.  * motd if a file $HOME/.hushlogin exists.  This obviously only matters
  145.  * if any of MOTD, MAILCHECK or LASTLOG are #define'd.
  146.  */
  147.  
  148. #define    HUSHLOGIN
  149.  
  150. /*
  151.  * Define LASTLOG if you want a record made of logins in /usr/adm/lastlog.
  152.  */
  153.  
  154. #define    LASTLOG
  155.  
  156. /*
  157.  * Define FAILLOG if you want a record make of failed logins in
  158.  * /usr/adm/faillog.  See faillog.h for more details.  See fail(1L)
  159.  * for even still more details ...  Also, define FTMP to record utmp
  160.  * style records for failed logins.  FTMP is the name of a utmp-like
  161.  * file.  You can use who(1) instead of faillog(L), which is an
  162.  * advantage.
  163.  */
  164.  
  165. #define    FAILLOG
  166. #define    FTMP    "/etc/ftmp"
  167.  
  168. /*
  169.  * Define TTYPERM to be the initial terminal permissions.  Defining
  170.  * as 0600 will not allow messages, 0622 will.
  171.  */
  172.  
  173. #define    TTYPERM    0600
  174.  
  175. /*
  176.  * Define TTYTYPE to the be name of the port to terminal type
  177.  * mapping file.  This is used to set the environmental variable
  178.  * "TERM" to the correct terminal type.
  179.  */
  180.  
  181. #define    TTYTYPE    "/etc/ttytype"
  182.  
  183. /*
  184.  * Define QUOTAS if you want the code added in setup.c to support
  185.  * file ulimit and nice [ and umask as well ] setting from the password
  186.  * file.
  187.  */
  188.  
  189. #define    QUOTAS
  190.  
  191. /*
  192.  * Define file name for sulog.  If SULOG is not defined, there will be
  193.  * no logging.  This is NOT a good idea ...  We also define other file
  194.  * names.
  195.  */
  196.  
  197. #define    SULOG    "/usr/adm/sulog"
  198. #define    SUCON    "/dev/console"
  199. #define    PWDFILE    "/etc/passwd"
  200. #define    OPWDFILE "/etc/-passwd"
  201. #define    NPWDFILE "/etc/npasswd"
  202. #define    OSHADOW "/etc/-shadow"
  203. #define    NSHADOW "/etc/nshadow"
  204. #define    GRPFILE    "/etc/group"
  205. #define    OGRPFILE "/etc/-group"
  206. #define    NGRPFILE "/etc/ngroup"
  207.  
  208. /*
  209.  * Define PWDLOCK to be a locking semaphore for updating the password
  210.  * file.  GRPLOCK is the same for the group file.
  211.  */
  212.  
  213. #define    PWDLOCK    "/etc/.pwdlock"
  214. #define    GRPLOCK "/etc/.grplock"
  215.  
  216. /*
  217.  * Wierd stuff follows ...
  218.  *
  219.  *    The following macros exist solely to override stuff ...
  220.  *    You will probably want to change their values to suit your
  221.  *    fancy.
  222.  */
  223.  
  224. #define    ERASECHAR    '\b'
  225. #define    KILLCHAR    '\025'
  226. #define    UMASK        022
  227.  
  228. #define    ULIMIT    (1L<<20) /* Define if your UNIX supports ulimit() */
  229. #define    FGETPWENT    /* Define if library does not include FGETPWENT */
  230. #define    NEED_AL64    /* Define if library does not include a64l() */
  231.