home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / sys / sun / 3587 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.6 KB

  1. Xref: sparky alt.sys.sun:3587 comp.sys.sun.misc:6465
  2. Path: sparky!uunet!auspex-gw!guy
  3. From: guy@Auspex.COM (Guy Harris)
  4. Newsgroups: alt.sys.sun,comp.sys.sun.misc
  5. Subject: Re: Can "normal" users mount under Solaris 2.X
  6. Message-ID: <16604@auspex-gw.auspex.com>
  7. Date: 24 Jan 93 02:03:38 GMT
  8. References: <C15usz.L0t@intcorp.mn.org> <HIRT.93Jan23210226@itsnova.mach.uni-karlsruhe.de>
  9. Sender: news@auspex-gw.auspex.com
  10. Followup-To: alt.sys.sun
  11. Organization: Auspex Systems, Santa Clara
  12. Lines: 21
  13. Nntp-Posting-Host: auspex.auspex.com
  14.  
  15. >It is generally 'unsecure' to have shellscripts setuid root. So it might be
  16. >possible that setuid for scripts was disabled in Solaris.
  17.  
  18. No, it's not disabled; what may be the most infamous security hole is
  19. closed in SVR4, although there may still be holes left (do *you* trust
  20. your favorite shell not to leave any holes open? Do *you* trust there
  21. not to be any *additional* kernel holes, even though the most infamous
  22. one has been closed?).
  23.  
  24. You *do* have to put a "-p" flag in the "#! /bin/sh" line; that flag
  25. tells the shell not to surrender set-UID privileges, and also, at least
  26. in part, prevents subsequent arguments that begin with "-" from spoofing
  27. the shell (similar to the "-b" flag in the 4.3BSD C shell and
  28. derivatives thereof, including the SunOS 4.x C shell and the SVR4 C
  29. shell).
  30.  
  31. Also, be aware that even if the kernel and shell don't have any such
  32. holes, the script *itself* may have holes.  Does your script set the
  33. path before running *any* commands (other than builtin commands)?  Does
  34. it set IFS if it's a Bourne/Korn/Bourne-again shell script and the shell
  35. in question imports IFS from the environment?
  36.