home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume42 / super / patch01 < prev    next >
Encoding:
Internet Message Format  |  1994-05-09  |  2.3 KB

  1. From: will@astro.caltech.edu (William Deich)
  2. Newsgroups: comp.sources.misc
  3. Subject: v42i093:  super - allow certain users to use certain commands as root, v3.4.5, Patch01
  4. Date: 9 May 1994 20:45:35 -0500
  5. Organization: Sterling Software
  6. Sender: root@sparky.sterling.com
  7. Approved: kent@sparky.sterling.com
  8. Message-ID: <2qmovv$cl5@sparky.sterling.com>
  9. X-Md4-Signature: 5b15a95262c11e995c78e4eb35e39f19
  10.  
  11. Submitted-by: will@astro.caltech.edu (William Deich)
  12. Posting-number: Volume 42, Issue 93
  13. Archive-name: super/patch01
  14. Environment: UNIX
  15. Patch-To: super: Volume 42, Issue 90-92
  16.  
  17. Attached is patch01 to Super-3.4.5.
  18.  
  19. The problem fixed was:
  20.  
  21. If you:
  22.     - compile super without -DUSE_NETGROUP, and
  23.     - use a hostname in a super.tab entry
  24. then:
  25.     super will improperly complain that you've got a wrong-format hostname.
  26.  
  27. (The complete source for the patched super is available for anonymous ftp
  28. from:   phobos.caltech.edu:users/will/super-3.4.6.shar   )
  29.  
  30.  -------------------
  31.  Super(1) is a setuid-root program that offers
  32.  
  33.     o  restricted setuid-root access to executables, adjustable
  34.     on a per-program and per-user basis;
  35.  
  36.     o  a relatively secure environment for scripts, so that well-written
  37.     scripts can be run as root (or some other uid/gid), without
  38.     unduly compromising security.
  39.  -------------------
  40.  
  41.  -Will
  42.  
  43. Will Deich
  44. Caltech  105-24, Pasadena, CA 91125
  45. Internet: will@astro.caltech.edu
  46. ---------------------------------> cut here <---------------------------------
  47. *** super.c    Mon May  9 13:44:55 1994
  48. --- super.c.new    Mon May  9 13:44:39 1994
  49. ***************
  50. *** 1178,1185 ****
  51.           return -1;            /* hostname is not in this netgroup */
  52.       }
  53.   #else
  54. !     return taglines(Error(0, 0, 
  55. !     "hostnames may not begin with `+' since this super()\n\
  56.   was compiled without -DUSE_NETGROUP.\n"));
  57.   #endif
  58.   
  59. --- 1178,1186 ----
  60.           return -1;            /* hostname is not in this netgroup */
  61.       }
  62.   #else
  63. !     if (hostpat && *hostpat == '+')    /* Disallow +name */
  64. !     return taglines(Error(0, 0, 
  65. !         "hostnames may not begin with `+' since this super()\n\
  66.   was compiled without -DUSE_NETGROUP.\n"));
  67.   #endif
  68.   
  69. *** version.h    Mon May  9 13:45:00 1994
  70. --- version.h.new    Mon May  9 13:44:44 1994
  71. ***************
  72. *** 1,2 ****
  73.   #define Version        "3.4"
  74. ! #define Patchlevel    "5"
  75. --- 1,2 ----
  76.   #define Version        "3.4"
  77. ! #define Patchlevel    "6"
  78.  
  79. exit 0 # Just in case...
  80.