From ripley@stats.ox.ac.uk  Fri Mar 15 08:07:35 2002
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Fri, 15 Mar 2002 08:07:35 +0000 (GMT)
Subject: [Rd] File permissions test during R CMD check
In-Reply-To: <15504.52042.451614.174105@mithrandir.hornik.net>
Message-ID: <Pine.LNX.4.31.0203150758090.18980-100000@gannet.stats>

On Thu, 14 Mar 2002, Kurt Hornik wrote:

> >>>>> "David Kane writes:
>
> > I think that I understand why R CMD check should warn if the
> > permissions on a file are too restrictive, but I don't understand why
> > it should warn if they are "too" loose. On UNIX, why is a file with
> > 644 OK, but one with 664 (just adding group writability) problematic
> > enough to require a warning?
>
> I think we want the *installed* files to be 644 and dirs to be 755 (by
> default).  Can we be sure that all routes to installing a package (as
> source or binary) lead to this even if permissions originally were too
> loose?  I don't, hence I prefer being on the defensive side.

There is an assumption that

umask 022

in INSTALL (on Unix-alikes) actually works.  If so, installing from source
should work.  You can't be sure about binary packages: they might not be
installed by INSTALL.

I don't see this.  We do not insist that R itself is installed as
world-readable, and I don't see why we should be doing so for packages.
Further, it would be convenient to have installed packages
group-writeable, as then anyone in the group can run update.packages().

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] File permissions test during R CMD check
ripley@stats.ox.ac.uk