From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 6b3deade for ; Tue, 6 Aug 2019 22:56:54 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 0F66D9BA34; Wed, 7 Aug 2019 08:56:53 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 7CDA69BA18; Wed, 7 Aug 2019 08:56:32 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gC1KiM2d"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 844F59BA18; Wed, 7 Aug 2019 08:56:30 +1000 (AEST) Received: from mail-oi1-f180.google.com (mail-oi1-f180.google.com [209.85.167.180]) by minnie.tuhs.org (Postfix) with ESMTPS id 0A4299BA17 for ; Wed, 7 Aug 2019 08:56:30 +1000 (AEST) Received: by mail-oi1-f180.google.com with SMTP id u15so69134753oiv.0 for ; Tue, 06 Aug 2019 15:56:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s/UMEFBRUd7SiqsOwdWFAZM5DREss4gBExEmf+ChNsg=; b=gC1KiM2ddk1VYLmkRCaIV6pfMNvRZRmCeuOtrj99t+2gQVWqz8IvLcJ4Q9PlSgwXVM l2VdZiB7aeKpTuXeQeIRtzRygrLs+XJbzDeukq7aTe1yKq5jxQf1yJ7h9Hy9LF9RwLcP aAdcmP+aZ98S/4MP7oN8/lj0B8eMOXvYpXcKFGr0irfs4tTn2SorXd1DyPEEKq4j6Q7Y PKuNfmQFackUSgqArd4NnnhKW1WnxVff4POyFYzG10mA8J6K1zBFYxnBypUM8/uq7kmP rnbS3YzEm91UKo2pkML8HmRiUrn2fwx3XE/rYhpwkLo4XAIgpeHgSxXgzWW0HbNJikTF egbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s/UMEFBRUd7SiqsOwdWFAZM5DREss4gBExEmf+ChNsg=; b=ogSvyC882C8JyXCJGHY5UhooLuIhTttKNQWVc7zdB5HL4C0uNTayb30b3NyKucmHdZ rJVUOLZk8oXb0+AKn51Wi/OsAP9UIzFXuyk1YtcDBP8IuFC54HqrK43ai/wSVoTM+WOR qLib8/0XoYi7+/D/Y+nn8uRGgf824Hp0vVeY77iI/Sa0y0CK3BKterVBzzFzT5aUaEQC 1wTeT8v2HYpqNH6afc1YmCRR8CK9yEkLlb0Ne+G+bnd38gQxhPddl8EeT6+SrNJgul21 g70gGj+UIi8jCFNJL6ODffk6HW4L5pQcQsB0SBCAFkBc2OTQxsp3VdmyaVkAp/m4aRPG z5gQ== X-Gm-Message-State: APjAAAXgjk76Wxw+/QpOoucfwc1WTmc+nQ1yOKaSDB1rYj/XGICToV3A m+I/DFzWifc4w98U7OdeIifQL2vqq5nVSjsAc/5bJ6TvhdA= X-Google-Smtp-Source: APXvYqxViTB/XTBjaRcgl/mw/QGkjskMVoW83aLnhq65GcGmxTacvDG3ZcIRwEQPQPcz67bnVpLl7dNyu8dL4SOuaog= X-Received: by 2002:aca:36c5:: with SMTP id d188mr3461113oia.39.1565132189109; Tue, 06 Aug 2019 15:56:29 -0700 (PDT) MIME-Version: 1.0 References: <1564954057.6926.for-standards-violators@oclsc.org> In-Reply-To: From: ron minnich Date: Tue, 6 Aug 2019 15:56:17 -0700 Message-ID: To: Dave Horsfall Content-Type: text/plain; charset="UTF-8" Subject: Re: [TUHS] Set-uid shell scripts X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" This brought to mind this old discussion: https://www.tuhs.org/Usenet/comp.unix.wizards/1988-November/023460.html On Tue, Aug 6, 2019 at 3:49 PM Dave Horsfall wrote: > > On Tue, 6 Aug 2019, jason-tuhs@shalott.net wrote: > > [ Replacing a temporary set-uid file ] > > > This was always described to me as the canonical reason why setuid > > interpreted scripts were a security hole, irrespective of any specifics > > in the shell or other interpreter. > > It's a problem for any temporary files in a world-writable directory, > hence the extensions to directory permissions e.g. /tmp and /var/tmp... > > Amusingly enough, the Mac works around this by symlinking /tmp to > private/tmp i.e. you get your own /tmp... > > -- Dave