umask per directory?
Moderator, John Quarterman
std-unix at ut-sally.UUCP
Tue Feb 4 07:15:35 AEST 1986
Date: 2 Feb 86 21:02:09 EST (Sun)
>From: floyd!opus!ka at SEISMO.CSS.GOV ()
Organization: Bell Labs, Holmdel, NJ
I agree with Mark Brader. In response to the moderator's suggestion
that "if you set the umask on your home directory to 022, and that were
inherited through your directory subtree, you would get the same effect
for your files as with a per-process umask," I would point out that
this doesn't work for files in /tmp.
[ Good point. Assume the old per-process umask still exists as a default,
though. (I've been assuming that but haven't mentioned it.) If /tmp
has no directory umask, things work. Most of the other objections
are also accounted for. -mod ]
My major objection, though, is that the proposal would break existing
programs. For example, tar and cpio would have to be modified to
handle the per-directory umask. This would mean new tar and cpio tape
formats, which would probably be unreadable by existing versions of tar
and cpio. I wrote a version of rcp a couple of months ago which would
have to be changed. Programs as unlikely as ed and passwd would
require modification.
In my view, the benefits of going to per-directory umasks are
outweighed by the disadvantages. I might be convinced otherwise with
additional argument. But changes which are not backwards compatible
must be justified by *major* benefits.
Kenneth Almquist
ihnp4!houxm!hropus!ka (official name)
ihnp4!opus!ka (shorter path)
Volume-Number: Volume 5, Number 32
More information about the Mod.std.unix
mailing list