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

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