From owner-freebsd-bugs Wed Aug 16 04:50:22 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id EAA20016 for bugs-outgoing; Wed, 16 Aug 1995 04:50:22 -0700 Received: (from gnats@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id EAA20002 ; Wed, 16 Aug 1995 04:50:07 -0700 Resent-Date: Wed, 16 Aug 1995 04:50:07 -0700 Resent-Message-Id: <199508161150.EAA20002@freefall.FreeBSD.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, bugs@sax.sax.de Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.FreeBSD.org (8.6.11/8.6.6) with SMTP id EAA19938 for ; Wed, 16 Aug 1995 04:44:16 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA13272; Wed, 16 Aug 1995 13:42:54 +0200 Received: by sax.sax.de (8.6.11/8.6.12-s1) id NAA21628; Wed, 16 Aug 1995 13:42:53 +0200 Message-Id: <199508161142.NAA21628@sax.sax.de> Date: Wed, 16 Aug 1995 13:42:53 +0200 From: hohmuth@sax.de Reply-To: bugs@sax.sax.de To: FreeBSD-gnats-submit@freebsd.org Cc: bugs@sax.sax.de X-Send-Pr-Version: 3.2 Subject: bin/693: `pkg_add' is umask-sensitive Sender: bugs-owner@freebsd.org Precedence: bulk >Number: 693 >Category: bin >Synopsis: `pkg_add' is umask-sensitive >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 16 04:50:01 PDT 1995 >Last-Modified: >Originator: Michael Hohmuth >Organization: SaxNet-Verein >Release: FreeBSD 2.0.5-RELEASE i386 >Environment: "uname -a" says: FreeBSD sax.sax.de 2.0.5-RELEASE FreeBSD 2.0.5-RELEASE #1: Mon Aug 14 21:18:11 MET DST 1995 root@sax.sax.de:/usr/src/sys/compile/SAX i386 >Description: `pkg_add' is too sensitive to umask-settings: If umask is 077, files created by `pkg_add' will have these bits masked out in their mode, rendering them useless for all users except root. >How-To-Repeat: root(hohmuth)@sax:~# umask 77 root(hohmuth)@sax:~# pkg_add /ftp/pub/os/FreeBSD/2.0.5-RELEASE/packages/All/top-3.3.tgz missing: ./include (created) missing: ./man/cat1 (created) missing: ./man/cat2 (created) missing: ./man/cat3 (created) missing: ./man/cat4 (created) missing: ./man/cat5 (created) missing: ./man/cat6 (created) missing: ./man/cat7 (created) missing: ./man/cat8 (created) missing: ./man/catl (created) missing: ./man/man2 (created) missing: ./man/man3 (created) missing: ./man/man6 (created) missing: ./man/man7 (created) missing: ./man/manl (created) missing: ./man/skel (created) root(hohmuth)@sax:~# /bin/ls -laF /usr/local/bin/top /usr/local/man/man1/top.1 -rwx--S--- 1 root kmem 38593 Jun 6 12:34 /usr/local/bin/top* -rwx------ 1 root bin 10621 Jun 6 12:34 /usr/local/man/man1/top.1* >Fix: Workaround: Say "umask 22" before `pgk_add'. >Audit-Trail: >Unformatted: