Path: utzoo!attcan!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: Setuid Shell Scripts -- Read The Whole Story Now! Keywords: To End All Clamor Message-ID: <459@auspex.UUCP> Date: 16 Nov 88 18:41:52 GMT References: <850@cantuar.UUCP> <1627@solo8.cs.vu.nl> <855@cantuar.UUCP> <1658@solo11.cs.vu.nl> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 22 >What about the csh command interpreter? Well, Sun Unix provides us with a csh >which has a NEW option: "-b"! Credit where credit is due; Berkeley provides that in 4.3BSD, Sun just picked it up. >Its goal is to avoid just the thing described above: the mnemonic for >`b' is `break'; this option prevents following arguments of an exec of >/bin/csh from being interpreted as options... An early 4.3 alpha or beta Bourne shell had this, but I think they realized that the "-" (yes, just "-") option already handled this in the Bourne shell - just use #! /bin/sh - rather than #! /bin/sh However, the other problems discussed still exist, so, as you state, you have to do more than that....