home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright 1989, 1990, John F. Haugh II
- * All rights reserved.
- *
- * Use, duplication, and disclosure prohibited without
- * the express written permission of the author.
- */
-
- /*
- * Configuration file for login.
- *
- * @(#)config.h 2.6 08:26:28 8/20/90
- */
-
- /*
- * Define DIALUP to use dialup password files. Define PORTTIME
- * to use the port time restriction file, see port.h for more
- * information.
- */
-
- #define DIALUP
- #define PORTTIME
-
- /*
- * Define SHADOWPWD to use shadow [ unreadable ] password file
- */
-
- #define SHADOWPWD
-
- /*
- * Define DOUBLESIZE to use 16 character passwords
- */
-
- #define DOUBLESIZE
-
- /*
- * Define OBSCURE to include hard password testing code.
- */
-
- #define OBSCURE
-
- /*
- * Define PASSLENGTH to be shortest legal password
- */
-
- #define PASSLENGTH 5
-
- /*
- * Define NOBLANK if you want all passwords prompted for, including
- * empty ones.
-
- #undef NOBLANK
-
- /*
- * Define MAXDAYS to be the default maximum number of days a password
- * is valid for when converting to shadow passwords. Define MINDAYS
- * to be the minimum number of days before a password may be changed.
- * See pwconv.c for more details.
- */
-
- #define MAXDAYS 10000
- #define MINDAYS 0
-
- /*
- * Define NDEBUG for production versions
- */
-
- #define NDEBUG
-
- /*
- * Define HZ if login must set HZ value
- */
-
- #define HZ "HZ=50"
-
- /*
- * Define TZ if login must set timezone
- *
- * The first example sets the variable directly. The
- * second example names a file which is read to determine
- * the proper value. The file consists of a single line
- * of the form 'TZ=zone-name'
- */
-
- /* #define TZ "TZ=CST6CDT" */
- #define TZ "/etc/tzname"
-
- /*
- * Define the default PATH and SUPATH here. PATH is for non-privileged
- * users, SUPATH is for root. The first pair are for real trusting
- * systems, the second pair are for the paranoid ...
- */
-
- /* #define PATH "PATH=:/bin:/usr/bin" */
- /* #define SUPATH "PATH=:/bin:/usr/bin:/etc" */
- #define PATH "PATH=/bin:/usr/bin"
- #define SUPATH "PATH=/bin:/usr/bin:/etc"
-
- /*
- * Define the mailbox directory
- */
-
- #define MAILDIR "/usr/spool/mail/"
-
- /*
- * Define AGING if you want the password aging checks made.
- * Define WARNAGE to be the number of days notice a user receives
- * of a soon to expire password.
- */
-
- #define AGING
- #define WARNAGE 10
-
- /*
- * Define MAILCHECK if you want the mailbox checked for new mail
- *
- * One of two messages are printed - `You have new mail.' or
- * `You have mail.'.
- */
-
- #define MAILCHECK
-
- /*
- * Define CONSOLE if you want ROOT restricted to a particular terminal.
- *
- * Use the name of the tty line if you only want a single line, or use
- * the name of the file containing the permissible ports if you wish to
- * allow root logins on more than one port.
- */
-
- /* #define CONSOLE "console" /* root on /dev/console only */
- #define CONSOLE "/etc/consoles" /* check /etc/consoles for a list */
-
- /*
- * Define NOLOGINS if you want to be able to deny non-root users logins.
- * Logins will not be permitted if this file exists.
- */
-
- #define NOLOGINS "/etc/nologin"
-
- /*
- * Define NOUSE if you want to be able to declare accounts which can't
- * be logged into. Define NOLOGIN if you want it to be an su-only account.
- */
-
- #define NOUSE "NOUSE"
- #define NOLOGIN "NOLOGIN"
-
- /*
- * Define MOTD if you want the message of the day (/etc/motd) printed
- * at login time.
- */
-
- #define MOTD
-
- /*
- * Define HUSHLOGIN if you want the code added to avoid printing the
- * motd if a file $HOME/.hushlogin exists. This obviously only matters
- * if any of MOTD, MAILCHECK or LASTLOG are #define'd.
- */
-
- #define HUSHLOGIN
-
- /*
- * Define LASTLOG if you want a record made of logins in /usr/adm/lastlog.
- */
-
- #define LASTLOG
-
- /*
- * Define FAILLOG if you want a record make of failed logins in
- * /usr/adm/faillog. See faillog.h for more details. See fail(1L)
- * for even still more details ... Also, define FTMP to record utmp
- * style records for failed logins. FTMP is the name of a utmp-like
- * file. You can use who(1) instead of faillog(L), which is an
- * advantage. Define UNKNOWNS if you do want unknown user names
- * recorded. This can be a security hole since passwords are often
- * entered mistakenly as user names.
- */
-
- #define FAILLOG
- #define FTMP "/etc/ftmp"
- #define UNKNOWNS
-
- /*
- * Define TTYPERM to be the initial terminal permissions. Defining
- * as 0600 will not allow messages, 0622 will.
- */
-
- #define TTYPERM 0600
-
- /*
- * Define TTYTYPE to the be name of the port to terminal type
- * mapping file. This is used to set the environmental variable
- * "TERM" to the correct terminal type.
- */
-
- #define TTYTYPE "/etc/ttytype"
-
- /*
- * Define QUOTAS if you want the code added in setup.c to support
- * file ulimit and nice [ and umask as well ] setting from the password
- * file.
- */
-
- #define QUOTAS
-
- /*
- * Pick your version of DBM. Only DBM is presently supported, NDBM will
- * follow. You must also define the GETPWENT macro below.
- */
-
- #define DBM
-
- /*
- * Define file name for sulog. If SULOG is not defined, there will be
- * no logging. This is NOT a good idea ... We also define other file
- * names.
- */
-
- #define SULOG "/usr/adm/sulog"
- #define SUCON "/dev/console"
- #define PWDFILE "/etc/passwd"
- #define OPWDFILE "/etc/-passwd"
- #define NPWDFILE "/etc/npasswd"
- #define OSHADOW "/etc/-shadow"
- #define NSHADOW "/etc/nshadow"
- #define GRPFILE "/etc/group"
- #define OGRPFILE "/etc/-group"
- #define NGRPFILE "/etc/ngroup"
-
- /*
- * Define PWDLOCK to be a locking semaphore for updating the password
- * file. GRPLOCK is the same for the group file.
- */
-
- #define PWDLOCK "/etc/.pwdlock"
- #define GRPLOCK "/etc/.grplock"
-
- /*
- * Wierd stuff follows ...
- *
- * The following macros exist solely to override stuff ...
- * You will probably want to change their values to suit your
- * fancy.
- */
-
- #define ERASECHAR '\b'
- #define KILLCHAR '\025'
- #define UMASK 022
-
- #define ULIMIT (1L<<20) /* Define if your UNIX supports ulimit() */
- #define FGETPWENT /* Define if library does not include FGETPWENT */
- #define GETPWENT /* Define if you want my GETPWENT(3) routines */
- #define NEED_AL64 /* Define if library does not include a64l() */
-