home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / bsd / 5467 < prev    next >
Encoding:
Text File  |  1992-09-10  |  1.9 KB  |  56 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!convex!darwin.sura.net!spool.mu.edu!sol.ctr.columbia.edu!eff!news.byu.edu!ux1!fcom.cc.utah.edu!park.uvcc.edu!ns.novell.com!thisbe.Eng.Sandy.Novell.COM!terry
  3. From: terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert)
  4. Subject: Re: 386BSD #!/bin/csh
  5. Message-ID: <BuDDIw.LzL@Novell.COM>
  6. Sender: usenet@Novell.COM (Usenet News)
  7. Nntp-Posting-Host: thisbe.eng.sandy.novell.com
  8. Organization: Novell NPD -- Sandy, UT
  9. References: <TRI.92Sep9011202@supergirl.hut.fi> <1992Sep9.171327.20998@gateway.novell.com> <61Ld025621cR01@JUTS.ccc.amdahl.com>
  10. Distribution: comp
  11. Date: Thu, 10 Sep 1992 15:54:31 GMT
  12. Lines: 42
  13.  
  14. In article <61Ld025621cR01@JUTS.ccc.amdahl.com> gab10@griffincd.amdahl.com (Gary A Browning) writes:
  15. >In article <1992Sep9.171327.20998@gateway.novell.com>,
  16. >terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert) writes:
  17. >> In article <TRI.92Sep9011202@supergirl.hut.fi> Timo.Rinne@hut.fi
  18. >> writes:
  19. >> >386bsd 0.1 doesn't seem to respect #! in beginning
  20. >> >of the shell scripts, Anyone knows why? Fixes?
  21. >> 
  22. >> Instead of:
  23. >> 
  24. >>     #!/bin/sh
  25. >>     #
  26. >>     ...
  27. >> 
  28. >> use:
  29. >> 
  30. >>     :
  31. >>     #
  32. >>     ...
  33. >> 
  34. >> This will result in invocation of /bin/sh.  Sorry; no workaround known
  35. >> to make it execute csh instead.
  36. >
  37. >I thought there was a patch for this in the X386 (XFree86) 1.0.2a distribution.
  38.  
  39.     There is; but it requires recompilation of the kernel (the patch is
  40. to kern_execve.c).  Recompiling the kernel is unacceptable to most people.
  41. What I gave was a workaround, and there is no similar workaround for the
  42. csh.
  43.  
  44.     The patch also causes security problems (ie: SUID shell scripts
  45. and anyone able to shut the machine down) unless other patches are applied
  46. at the same time (and these *don't* come with the X stuff).
  47.  
  48.  
  49.                     Terry Lambert
  50.                     terry_lambert@gateway.novell.com
  51.                     terry@icarus.weber.edu
  52.  
  53. ---
  54. Disclaimer:  Any opinions in this posting are my own and not those of
  55. my present or previous employers.
  56.