home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume26 / shadow / patch01 < prev    next >
Encoding:
Text File  |  1991-11-25  |  8.2 KB  |  302 lines

  1. Newsgroups: comp.sources.misc
  2. From: jfh@rpp386.cactus.org (John F Haugh II)
  3. Subject:  v26i075:  shadow - Shadow Password Suite, Patch01
  4. Message-ID: <1991Nov26.043846.3815@sparky.imd.sterling.com>
  5. X-Md4-Signature: ffdea5755a64a941c54671f4195af3d5
  6. Date: Tue, 26 Nov 1991 04:38:46 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: jfh@rpp386.cactus.org (John F Haugh II)
  10. Posting-number: Volume 26, Issue 75
  11. Archive-name: shadow/patch01
  12. Environment: UNIX
  13. Patch-To: shadow: Volume 26, Issue 54-64
  14.  
  15. Priority: HIGH
  16.  
  17. The following patch provides a file which was missing from the initial
  18. distribution.  Please apply this patch immediately.  And additional change
  19. was made to the groups(1) command to correct a compiler warning.
  20.  
  21. After applying this patch, your sources will be at version 3.1.1.
  22. --
  23. Prereq: "3.1.0"
  24. Index: patchlevel.h
  25. *** rel3/patchlevel.h    Mon Nov 25 09:48:27 1991
  26. --- patchlevel.h    Mon Nov 25 09:47:20 1991
  27. ***************
  28. *** 7,14 ****
  29.    * in all copies of source code, or included in human readable form
  30.    * and conspicuously displayed on all copies of object code or
  31.    * distribution media.
  32.    */
  33.   
  34.   #define    RELEASE        3
  35. ! #define    PATCHLEVEL    13
  36. ! #define    VERSION        "3.1.0"
  37. --- 7,18 ----
  38.    * in all copies of source code, or included in human readable form
  39.    * and conspicuously displayed on all copies of object code or
  40.    * distribution media.
  41. +  *
  42. +  * Revision History
  43. +  *    11/25/91    3.1.1    patchlevel 14
  44. +  *        Added "login.defs" to Makefile
  45.    */
  46.   
  47.   #define    RELEASE        3
  48. ! #define    PATCHLEVEL    14
  49. ! #define    VERSION        "3.1.1"
  50. Index: Makefile
  51. *** rel3/Makefile    Mon Nov 25 09:48:32 1991
  52. --- Makefile    Mon Nov 25 09:48:15 1991
  53. ***************
  54. *** 8,16 ****
  55.   # and conspicuously displayed on all copies of object code or
  56.   # distribution media.
  57.   #
  58. ! #    @(#)Makefile    3.24    13:20:38  - Shadow password system
  59.   #
  60. ! #    @(#)Makefile    3.24    13:20:38    11/3/91
  61.   #
  62.   SHELL = /bin/sh
  63.   
  64. --- 8,16 ----
  65.   # and conspicuously displayed on all copies of object code or
  66.   # distribution media.
  67.   #
  68. ! #    @(#)Makefile    3.25    09:47:59  - Shadow password system
  69.   #
  70. ! #    @(#)Makefile    3.25    09:47:59    11/25/91
  71.   #
  72.   SHELL = /bin/sh
  73.   
  74. ***************
  75. *** 175,181 ****
  76.   FILES7 = groupio.c shadowio.c sgroupio.c groups.c copydir.c mkrmdir.c \
  77.       mkpasswd.c
  78.   
  79. ! FILES8 = useradd.c usermod.c
  80.   
  81.   FILES9 = groupadd.c groupdel.c groupmod.c tz.c console.c hushed.c getdef.c \
  82.       scologin.c logoutd.c sulog.c getpass.c userdel.c
  83. --- 175,181 ----
  84.   FILES7 = groupio.c shadowio.c sgroupio.c groups.c copydir.c mkrmdir.c \
  85.       mkpasswd.c
  86.   
  87. ! FILES8 = useradd.c usermod.c login.defs
  88.   
  89.   FILES9 = groupadd.c groupdel.c groupmod.c tz.c console.c hushed.c getdef.c \
  90.       scologin.c logoutd.c sulog.c getpass.c userdel.c
  91. Index: login.defs
  92. *** /dev/null    Mon Nov 25 09:27:51 1991
  93. --- login.defs    Mon Nov 25 09:48:16 1991
  94. ***************
  95. *** 0 ****
  96. --- 1,163 ----
  97. + #
  98. + # /etc/login.defs - Configuration control definitions for the login package.
  99. + #
  100. + #    @(#)login.defs    3.1    07:47:58    9/17/91
  101. + #
  102. + # Three items must be defined:  MAIL_DIR, ENV_SUPATH, and ENV_PATH.
  103. + # If unspecified, some arbitrary (and possibly incorrect) value will
  104. + # be assumed.  All other items are optional - if not specified then
  105. + # the described action or option will be inhibited.
  106. + #
  107. + # Comment lines (lines beginning with "#") and blank lines are ignored.
  108. + #
  109. + #
  110. + # Enable additional passwords upon dialup lines specified in /etc/dialups.
  111. + #
  112. + DIALUPS_CHECK_ENAB    yes
  113. + #
  114. + # Enable logging and display of /usr/adm/faillog login failure info.
  115. + #
  116. + FAILLOG_ENAB        yes
  117. + #
  118. + # Enable display of unknown usernames when login failures are recorded.
  119. + #
  120. + LOG_UNKFAIL_ENAB    yes
  121. + #
  122. + # Enable logging and display of /usr/adm/lastlog login time info.
  123. + #
  124. + LASTLOG_ENAB        yes
  125. + #
  126. + # Enable checking and display of mailbox status upon login.
  127. + #
  128. + MAIL_CHECK_ENAB        yes
  129. + #
  130. + # Enable additional checks upon password changes.
  131. + #
  132. + OBSCURE_CHECKS_ENAB    yes
  133. + #
  134. + # Enable checking of time restrictions specified in /etc/porttime.
  135. + #
  136. + PORTTIME_CHECKS_ENAB    yes
  137. + #
  138. + # Enable setting of ulimit, umask, and niceness from passwd gecos field.
  139. + #
  140. + QUOTAS_ENAB        yes
  141. + #
  142. + # Enable "syslog" logging of su activity - in addition to sulog file logging.
  143. + #
  144. + SYSLOG_SU_ENAB        no
  145. + #
  146. + # If defined, either full pathname of a file containing device names or
  147. + # a ":" delimited list of device names.  Root logins will be allowed only
  148. + # upon these devices.
  149. + #
  150. + CONSOLE        /etc/consoles
  151. + #CONSOLE    console:tty01:tty02:tty03:tty04
  152. + #
  153. + # If defined, all su activity is logged to this file.
  154. + #
  155. + SULOG_FILE    /usr/adm/sulog
  156. + #
  157. + # If defined, ":" delimited list of "message of the day" files to
  158. + # be displayed upon login.
  159. + #
  160. + MOTD_FILE    /etc/motd
  161. + #MOTD_FILE    /etc/motd:/usr/lib/news/news-motd
  162. + #
  163. + # If defined, file which maps tty line to TERM environment parameter.
  164. + # Each line of the file is in a format something like "vt100  tty01".
  165. + #
  166. + TTYTYPE_FILE    /etc/ttytype
  167. + #
  168. + # If defined, login failures will be logged here in a utmp format.
  169. + #
  170. + FTMP_FILE    /etc/ftmp
  171. + #
  172. + # If defined, name of file whose presence which will inhibit non-root
  173. + # logins.  The contents of this file should be a message indicating
  174. + # why logins are inhibited.
  175. + #
  176. + NOLOGINS_FILE    /etc/nologins
  177. + #
  178. + # *REQUIRED*  Directory where mailboxes reside, to set MAIL env parameter.
  179. + #
  180. + MAIL_DIR    /usr/spool/mail
  181. + #
  182. + # If defined, file which inhibits all the usual chatter during the login
  183. + # sequence.  If a full pathname, then hushed mode will be enabled if the
  184. + # user's name or shell are found in the file.  If not a full pathname, then
  185. + # hushed mode will be enabled if the file exists in the user's home directory.
  186. + #
  187. + #HUSHLOGIN_FILE    .hushlogin
  188. + HUSHLOGIN_FILE    /etc/hushlogins
  189. + #
  190. + # If defined, the presence of this value in an /etc/passwd "shell" field will
  191. + # disable logins for that user, although "su" will still be allowed.
  192. + #
  193. + NOLOGIN_STR    NOLOGIN
  194. + #
  195. + # If defined, either a TZ environment parameter spec or the
  196. + # fully-rooted pathname of a file containing such a spec.
  197. + #
  198. + ENV_TZ        TZ=CST6CDT
  199. + #ENV_TZ        /etc/tzname
  200. + #
  201. + # If defined, an HZ environment parameter spec.
  202. + #
  203. + ENV_HZ        HZ=50
  204. + #
  205. + # *REQUIRED*  The default PATH settings, for superuser and normal users.
  206. + #
  207. + ENV_SUPATH    PATH=/etc/local:/etc:/local/bin:/usr/bin:/bin
  208. + ENV_PATH    PATH=/local/bin:/usr/bin:/bin
  209. + #
  210. + # Login configuration initializations:
  211. + #
  212. + #    ERASECHAR    Terminal ERASE character ('\010' = backspace).
  213. + #    KILLCHAR    Terminal KILL character ('\025' = CTRL/U).
  214. + #    UMASK        Default "umask" value.
  215. + #    ULIMIT        Default "ulimit" value.
  216. + #    TTYPERM        Login tty will be set to this permission.
  217. + #
  218. + # The ERASECHAR and KILLCHAR are used only on System V machines.
  219. + # The ULIMIT is used only if the system supports it.
  220. + #
  221. + # Prefix these values with "0" to get octal, "0x" to get hexadecimal.
  222. + #
  223. + ERASECHAR    010
  224. + KILLCHAR    025
  225. + UMASK        022
  226. + ULIMIT        2097152
  227. + TTYPERM        0622
  228. + #
  229. + # Password aging controls:
  230. + #
  231. + #    PASS_MAX_DAYS    Maximum number of days a password may be used.
  232. + #    PASS_MIN_DAYS    Minimum number of days allowed between password changes.
  233. + #    PASS_MIN_LEN    Minimum acceptable password length.
  234. + #    PASS_WARN_AGE    Number of days warning given before a password expires.
  235. + #
  236. + PASS_MAX_DAYS    99999
  237. + PASS_MIN_DAYS    0
  238. + PASS_MIN_LEN    5
  239. + PASS_WARN_AGE    7
  240. Index: groups.c
  241. *** rel3/groups.c    Mon Nov 25 09:49:29 1991
  242. --- groups.c    Mon Nov 25 09:48:17 1991
  243. ***************
  244. *** 9,15 ****
  245.    * distribution media.
  246.    */
  247.   
  248. ! static    char    sccsid[] = "@(#)groups.c    3.1    08:50:47    11/3/91";
  249.   
  250.   #include "stdio.h"
  251.   #include "pwd.h"
  252. --- 9,15 ----
  253.    * distribution media.
  254.    */
  255.   
  256. ! static    char    sccsid[] = "@(#)groups.c    3.2    09:47:19    11/25/91";
  257.   
  258.   #include "stdio.h"
  259.   #include "pwd.h"
  260. ***************
  261. *** 63,68 ****
  262. --- 63,69 ----
  263.       int    i;
  264.   #else
  265.       char    *logname;
  266. +     char    *getlogin();
  267.   #endif
  268.       struct    group    *gr;
  269.       struct    group    *getgrgid();
  270. -- 
  271. John F. Haugh II        |I am the NRA.     | UUCP: ...!cs.utexas.edu!rpp386!jfh
  272. Ma Bell: (512) 255-8251 |Take a friend shooting.| Domain: jfh@rpp386.cactus.org
  273. " ... expectation is the mother of disappointment."
  274.         -- Brad Konopik
  275.  
  276. exit 0 # Just in case...
  277. -- 
  278. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  279. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  280. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  281. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  282.