Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 1995 13:42:53 +0200
From:      hohmuth@sax.de
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        bugs@sax.sax.de
Subject:   bin/693: `pkg_add' is umask-sensitive
Message-ID:  <199508161142.NAA21628@sax.sax.de>
Resent-Message-ID: <199508161150.EAA20002@freefall.FreeBSD.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508161142.NAA21628>