Received: with LISTAR (v1.0.0; list gopher); Wed, 03 Jan 2001 16:42:56 -0600 (CST) Return-Path: Delivered-To: gopher@complete.org Received: from gtei2.bellatlantic.net (gtei2.bellatlantic.net [199.45.40.146]) by pi.glockenspiel.complete.org (Postfix) with ESMTP id ABDEA3B8FD for ; Wed, 3 Jan 2001 16:42:55 -0600 (CST) Received: from mothra (adsl-141-152-12-101.bellatlantic.net [141.152.12.101]) by gtei2.bellatlantic.net (8.9.1/8.9.1) with ESMTP id RAA13857 for ; Wed, 3 Jan 2001 17:40:25 -0500 (EST) Received: from x by mothra with local (Exim 3.20 #1 (Debian)) id 14DwZh-0002iH-00 for ; Wed, 03 Jan 2001 17:40:05 -0500 Date: Wed, 3 Jan 2001 17:40:05 -0500 From: David Allen To: gopher@complete.org Subject: [gopher] Correct behavior? Message-ID: <20010103174005.A10398@mothra> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i Content-Transfer-Encoding: 8bit X-archive-position: 15 X-listar-version: Listar v1.0.0 Sender: gopher-bounce@complete.org Errors-to: gopher-bounce@complete.org X-original-sender: s2mdalle@titan.vcu.edu Precedence: bulk Reply-to: gopher@complete.org X-list: gopher Hello, Recently John and I have been swapping emails about a real pain in the ass in UMN gopherd. On one hand, the server allows you to execute shell scripts (gopherd then serves the output) as long as you have it executable and it's shebanged. (#!/bin/sh) On the other, the default behavior for gopherd is to chroot() for security, meaning that as far as gopherd is concerned, /bin/sh doesn't exist. You can act like an FTP server and copy a bunch of utils to a local directory, but anyway... It looks like it's pretty easy to detect the case where a shell script bombs due to this problem. (chroot() causing this failure). So what's the correct behavior in this situation? Currently, since the program can't execute, it's output is "" and that's exactly what's sent to the client. Would you say that it's appropriate for the server to spit out an error message saying something along the lines of "Whoops! Something seems misconfigured here...why don't you drop and email to let him know!" Or is it more appropriate to leave it the way it is? -- David Allen http://opop.nols.com/ ---------------------------------------- A limerick packs laughs anatomical Into space that is quite economical. But the good ones I've seen So seldom are clean, And the clean ones so seldom are comical.