*BSD News Article 9475


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA5824 ; Fri, 01 Jan 93 01:57:04 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!metro!ipso!runxtsa!bde
From: bde@runx.oz.au (Bruce Evans)
Subject: Re: [386 BSD] Permissions set wrong - HELP
Message-ID: <1993Jan1.105359.4807@runx.oz.au>
Organization: RUNX Un*x Timeshare.  Sydney, Australia.
References: <C0618x.6uL@ais.org>
Date: Fri, 1 Jan 93 10:53:59 GMT
Lines: 22

In article <C0618x.6uL@ais.org> draper@ais.org (Patrick Draper) writes:
>
>The directory /tmp didn't have access for others to write to it. Also, the
>directory /var/tmp didn't have access either.
>
>Why are these directories set up this way? I switched them, but I don't know
>what problems this will cause in the future.

They are just wrong.  If you unpack the bin01 distribution, it will create
the directory /tmp with permissions rwxr-xr-x because /tmp is not actually
in the bin01 distribution, only the file /tmp/install.bin01 is there, so
cpio creates /tmp with the default permissions.

I'm not very familiar with /tmp and had trouble getting the right
directories in the archive when I repacked the src01 distribution.  (The
src01 distribution can be packed in only 34 files of size 240640 instead
of 61, by removing 2.5MB of junk uucp binaries and compressing it with
zip).  One advantage of cpio over tar is that it restores directory
permissions so the default /tmp permissions would get fixed up by a
/tmp with the correct permissions in another archive.
-- 
Bruce Evans  (bde@runx.oz.au)