home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.bsd
- 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
- From: terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert)
- Subject: Re: 386BSD #!/bin/csh
- Message-ID: <BuDDIw.LzL@Novell.COM>
- Sender: usenet@Novell.COM (Usenet News)
- Nntp-Posting-Host: thisbe.eng.sandy.novell.com
- Organization: Novell NPD -- Sandy, UT
- References: <TRI.92Sep9011202@supergirl.hut.fi> <1992Sep9.171327.20998@gateway.novell.com> <61Ld025621cR01@JUTS.ccc.amdahl.com>
- Distribution: comp
- Date: Thu, 10 Sep 1992 15:54:31 GMT
- Lines: 42
-
- In article <61Ld025621cR01@JUTS.ccc.amdahl.com> gab10@griffincd.amdahl.com (Gary A Browning) writes:
- >In article <1992Sep9.171327.20998@gateway.novell.com>,
- >terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert) writes:
- >> In article <TRI.92Sep9011202@supergirl.hut.fi> Timo.Rinne@hut.fi
- >> writes:
- >> >386bsd 0.1 doesn't seem to respect #! in beginning
- >> >of the shell scripts, Anyone knows why? Fixes?
- >>
- >> Instead of:
- >>
- >> #!/bin/sh
- >> #
- >> ...
- >>
- >> use:
- >>
- >> :
- >> #
- >> ...
- >>
- >> This will result in invocation of /bin/sh. Sorry; no workaround known
- >> to make it execute csh instead.
- >
- >I thought there was a patch for this in the X386 (XFree86) 1.0.2a distribution.
-
- There is; but it requires recompilation of the kernel (the patch is
- to kern_execve.c). Recompiling the kernel is unacceptable to most people.
- What I gave was a workaround, and there is no similar workaround for the
- csh.
-
- The patch also causes security problems (ie: SUID shell scripts
- and anyone able to shut the machine down) unless other patches are applied
- at the same time (and these *don't* come with the X stuff).
-
-
- Terry Lambert
- terry_lambert@gateway.novell.com
- terry@icarus.weber.edu
-
- ---
- Disclaimer: Any opinions in this posting are my own and not those of
- my present or previous employers.
-