home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sources.misc
- From: jfh@rpp386.cactus.org (John F Haugh II)
- Subject: v26i075: shadow - Shadow Password Suite, Patch01
- Message-ID: <1991Nov26.043846.3815@sparky.imd.sterling.com>
- X-Md4-Signature: ffdea5755a64a941c54671f4195af3d5
- Date: Tue, 26 Nov 1991 04:38:46 GMT
- Approved: kent@sparky.imd.sterling.com
-
- Submitted-by: jfh@rpp386.cactus.org (John F Haugh II)
- Posting-number: Volume 26, Issue 75
- Archive-name: shadow/patch01
- Environment: UNIX
- Patch-To: shadow: Volume 26, Issue 54-64
-
- Priority: HIGH
-
- The following patch provides a file which was missing from the initial
- distribution. Please apply this patch immediately. And additional change
- was made to the groups(1) command to correct a compiler warning.
-
- After applying this patch, your sources will be at version 3.1.1.
- --
- Prereq: "3.1.0"
- Index: patchlevel.h
- *** rel3/patchlevel.h Mon Nov 25 09:48:27 1991
- --- patchlevel.h Mon Nov 25 09:47:20 1991
- ***************
- *** 7,14 ****
- * in all copies of source code, or included in human readable form
- * and conspicuously displayed on all copies of object code or
- * distribution media.
- */
-
- #define RELEASE 3
- ! #define PATCHLEVEL 13
- ! #define VERSION "3.1.0"
- --- 7,18 ----
- * in all copies of source code, or included in human readable form
- * and conspicuously displayed on all copies of object code or
- * distribution media.
- + *
- + * Revision History
- + * 11/25/91 3.1.1 patchlevel 14
- + * Added "login.defs" to Makefile
- */
-
- #define RELEASE 3
- ! #define PATCHLEVEL 14
- ! #define VERSION "3.1.1"
- Index: Makefile
- *** rel3/Makefile Mon Nov 25 09:48:32 1991
- --- Makefile Mon Nov 25 09:48:15 1991
- ***************
- *** 8,16 ****
- # and conspicuously displayed on all copies of object code or
- # distribution media.
- #
- ! # @(#)Makefile 3.24 13:20:38 - Shadow password system
- #
- ! # @(#)Makefile 3.24 13:20:38 11/3/91
- #
- SHELL = /bin/sh
-
- --- 8,16 ----
- # and conspicuously displayed on all copies of object code or
- # distribution media.
- #
- ! # @(#)Makefile 3.25 09:47:59 - Shadow password system
- #
- ! # @(#)Makefile 3.25 09:47:59 11/25/91
- #
- SHELL = /bin/sh
-
- ***************
- *** 175,181 ****
- FILES7 = groupio.c shadowio.c sgroupio.c groups.c copydir.c mkrmdir.c \
- mkpasswd.c
-
- ! FILES8 = useradd.c usermod.c
-
- FILES9 = groupadd.c groupdel.c groupmod.c tz.c console.c hushed.c getdef.c \
- scologin.c logoutd.c sulog.c getpass.c userdel.c
- --- 175,181 ----
- FILES7 = groupio.c shadowio.c sgroupio.c groups.c copydir.c mkrmdir.c \
- mkpasswd.c
-
- ! FILES8 = useradd.c usermod.c login.defs
-
- FILES9 = groupadd.c groupdel.c groupmod.c tz.c console.c hushed.c getdef.c \
- scologin.c logoutd.c sulog.c getpass.c userdel.c
- Index: login.defs
- *** /dev/null Mon Nov 25 09:27:51 1991
- --- login.defs Mon Nov 25 09:48:16 1991
- ***************
- *** 0 ****
- --- 1,163 ----
- + #
- + # /etc/login.defs - Configuration control definitions for the login package.
- + #
- + # @(#)login.defs 3.1 07:47:58 9/17/91
- + #
- + # Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
- + # If unspecified, some arbitrary (and possibly incorrect) value will
- + # be assumed. All other items are optional - if not specified then
- + # the described action or option will be inhibited.
- + #
- + # Comment lines (lines beginning with "#") and blank lines are ignored.
- + #
- +
- + #
- + # Enable additional passwords upon dialup lines specified in /etc/dialups.
- + #
- + DIALUPS_CHECK_ENAB yes
- +
- + #
- + # Enable logging and display of /usr/adm/faillog login failure info.
- + #
- + FAILLOG_ENAB yes
- +
- + #
- + # Enable display of unknown usernames when login failures are recorded.
- + #
- + LOG_UNKFAIL_ENAB yes
- +
- + #
- + # Enable logging and display of /usr/adm/lastlog login time info.
- + #
- + LASTLOG_ENAB yes
- + #
- + # Enable checking and display of mailbox status upon login.
- + #
- + MAIL_CHECK_ENAB yes
- +
- + #
- + # Enable additional checks upon password changes.
- + #
- + OBSCURE_CHECKS_ENAB yes
- +
- + #
- + # Enable checking of time restrictions specified in /etc/porttime.
- + #
- + PORTTIME_CHECKS_ENAB yes
- +
- + #
- + # Enable setting of ulimit, umask, and niceness from passwd gecos field.
- + #
- + QUOTAS_ENAB yes
- +
- + #
- + # Enable "syslog" logging of su activity - in addition to sulog file logging.
- + #
- + SYSLOG_SU_ENAB no
- +
- + #
- + # If defined, either full pathname of a file containing device names or
- + # a ":" delimited list of device names. Root logins will be allowed only
- + # upon these devices.
- + #
- + CONSOLE /etc/consoles
- + #CONSOLE console:tty01:tty02:tty03:tty04
- +
- + #
- + # If defined, all su activity is logged to this file.
- + #
- + SULOG_FILE /usr/adm/sulog
- +
- + #
- + # If defined, ":" delimited list of "message of the day" files to
- + # be displayed upon login.
- + #
- + MOTD_FILE /etc/motd
- + #MOTD_FILE /etc/motd:/usr/lib/news/news-motd
- +
- + #
- + # If defined, file which maps tty line to TERM environment parameter.
- + # Each line of the file is in a format something like "vt100 tty01".
- + #
- + TTYTYPE_FILE /etc/ttytype
- +
- + #
- + # If defined, login failures will be logged here in a utmp format.
- + #
- + FTMP_FILE /etc/ftmp
- +
- + #
- + # If defined, name of file whose presence which will inhibit non-root
- + # logins. The contents of this file should be a message indicating
- + # why logins are inhibited.
- + #
- + NOLOGINS_FILE /etc/nologins
- +
- + #
- + # *REQUIRED* Directory where mailboxes reside, to set MAIL env parameter.
- + #
- + MAIL_DIR /usr/spool/mail
- +
- + #
- + # If defined, file which inhibits all the usual chatter during the login
- + # sequence. If a full pathname, then hushed mode will be enabled if the
- + # user's name or shell are found in the file. If not a full pathname, then
- + # hushed mode will be enabled if the file exists in the user's home directory.
- + #
- + #HUSHLOGIN_FILE .hushlogin
- + HUSHLOGIN_FILE /etc/hushlogins
- +
- + #
- + # If defined, the presence of this value in an /etc/passwd "shell" field will
- + # disable logins for that user, although "su" will still be allowed.
- + #
- + NOLOGIN_STR NOLOGIN
- +
- + #
- + # If defined, either a TZ environment parameter spec or the
- + # fully-rooted pathname of a file containing such a spec.
- + #
- + ENV_TZ TZ=CST6CDT
- + #ENV_TZ /etc/tzname
- +
- + #
- + # If defined, an HZ environment parameter spec.
- + #
- + ENV_HZ HZ=50
- + #
- + # *REQUIRED* The default PATH settings, for superuser and normal users.
- + #
- + ENV_SUPATH PATH=/etc/local:/etc:/local/bin:/usr/bin:/bin
- + ENV_PATH PATH=/local/bin:/usr/bin:/bin
- +
- + #
- + # Login configuration initializations:
- + #
- + # ERASECHAR Terminal ERASE character ('\010' = backspace).
- + # KILLCHAR Terminal KILL character ('\025' = CTRL/U).
- + # UMASK Default "umask" value.
- + # ULIMIT Default "ulimit" value.
- + # TTYPERM Login tty will be set to this permission.
- + #
- + # The ERASECHAR and KILLCHAR are used only on System V machines.
- + # The ULIMIT is used only if the system supports it.
- + #
- + # Prefix these values with "0" to get octal, "0x" to get hexadecimal.
- + #
- + ERASECHAR 010
- + KILLCHAR 025
- + UMASK 022
- + ULIMIT 2097152
- + TTYPERM 0622
- + #
- + # Password aging controls:
- + #
- + # PASS_MAX_DAYS Maximum number of days a password may be used.
- + # PASS_MIN_DAYS Minimum number of days allowed between password changes.
- + # PASS_MIN_LEN Minimum acceptable password length.
- + # PASS_WARN_AGE Number of days warning given before a password expires.
- + #
- + PASS_MAX_DAYS 99999
- + PASS_MIN_DAYS 0
- + PASS_MIN_LEN 5
- + PASS_WARN_AGE 7
- Index: groups.c
- *** rel3/groups.c Mon Nov 25 09:49:29 1991
- --- groups.c Mon Nov 25 09:48:17 1991
- ***************
- *** 9,15 ****
- * distribution media.
- */
-
- ! static char sccsid[] = "@(#)groups.c 3.1 08:50:47 11/3/91";
-
- #include "stdio.h"
- #include "pwd.h"
- --- 9,15 ----
- * distribution media.
- */
-
- ! static char sccsid[] = "@(#)groups.c 3.2 09:47:19 11/25/91";
-
- #include "stdio.h"
- #include "pwd.h"
- ***************
- *** 63,68 ****
- --- 63,69 ----
- int i;
- #else
- char *logname;
- + char *getlogin();
- #endif
- struct group *gr;
- struct group *getgrgid();
- --
- John F. Haugh II |I am the NRA. | UUCP: ...!cs.utexas.edu!rpp386!jfh
- Ma Bell: (512) 255-8251 |Take a friend shooting.| Domain: jfh@rpp386.cactus.org
- " ... expectation is the mother of disappointment."
- -- Brad Konopik
-
- exit 0 # Just in case...
- --
- Kent Landfield INTERNET: kent@sparky.IMD.Sterling.COM
- Sterling Software, IMD UUCP: uunet!sparky!kent
- Phone: (402) 291-8300 FAX: (402) 291-4362
- Please send comp.sources.misc-related mail to kent@uunet.uu.net.
-