From owner-freebsd-doc@FreeBSD.ORG Sun Jun 3 02:10:07 2007 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F058416A468 for ; Sun, 3 Jun 2007 02:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id B92CB13C457 for ; Sun, 3 Jun 2007 02:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l532A7lc095836 for ; Sun, 3 Jun 2007 02:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l532A7aY095835; Sun, 3 Jun 2007 02:10:07 GMT (envelope-from gnats) Resent-Date: Sun, 3 Jun 2007 02:10:07 GMT Resent-Message-Id: <200706030210.l532A7aY095835@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mark Stevans Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5632716A421 for ; Sun, 3 Jun 2007 02:09:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 475F313C44B for ; Sun, 3 Jun 2007 02:09:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l532927i049692 for ; Sun, 3 Jun 2007 02:09:02 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l53292Xb049691; Sun, 3 Jun 2007 02:09:02 GMT (envelope-from nobody) Message-Id: <200706030209.l53292Xb049691@www.freebsd.org> Date: Sun, 3 Jun 2007 02:09:02 GMT From: Mark Stevans To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: docs/113274: Handbook needs file execution troubleshooting section X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2007 02:10:08 -0000 >Number: 113274 >Category: docs >Synopsis: Handbook needs file execution troubleshooting section >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 03 02:10:07 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Mark Stevans >Release: 6.1 >Organization: Piqqem >Environment: FreeBSD redpen.piqqem.lan 6.1-SECURITY FreeBSD 6.1-SECURITY #0: Thu Apr 26 14:39:24 UTC 2007 root@builder.daemonology.net:/usr/obj/usr/src/sys/SMP i386 >Description: One of the most frustrating experiences in the UNIX world is to have a file (often a script) that you just cannot get to execute, especially in a high-pressure scenario. There is a long list of reasons why a FreeBSD file cannot be executed, e.g. no magic number, file system mounted NOEXEC, no execute permission, no read permission, interpreter cannot be found, etc., etc.. For the benefit of users everywhere, this list needs to be carefully constructed and included in a future FreeBSD Handbook "File Execution Troubleshooting" section. >How-To-Repeat: Try to execute a file you have execute permission for, but no read permission on the associated script interpreter, for example, without being a FreeBSD/UNIX guru, and watch how long it takes you to stumble upon the solution, often hours or days. >Fix: Break down all the cases for failure to execute a program/script, and list them clearly and completely. >Release-Note: >Audit-Trail: >Unformatted: