Hi

On Sun, Jun 06, 2010 at 12:47:01PM +0100, John Cremona wrote:
> What I do is this:
> 
> (1) unpack and build in my own directory
> (2) using sudo, copy everything to /usr/local/sage/sage-x.y.z
> (3) using sudo, run /usr/local/sage/sage-x.y.z/sage once
> (4) using sudo, do chown -R root:root /usr/local/sage/ and also chmod
> -R a+rX /usr/local/sage
> Note the capital X in the last command, which has the effect of giving
> everyone x permission iff the owner has it.

Great. That confirms pretty much my approach.

Is that all necessary? sufficient? best-practice?
(So far the +X permissions have not been necessary 
for me, since about version 3.x.y till now. So the
files already built with this correct permissions.)
It seems best practice to me.

What about the case of build leaving files with too 
many permissions?

Most package-building tools (dpkg, emerge, rpm, etc.) would
do this permission change when? During dpkg-build?

In addition:
Long ago I had to make /usr/local/src/sage-4.4.3/tmp/tmp
and give it permissions 1777 (like /tmp) for users wishing
to run sage -t on this system-wide install, and who was
denied permission. This user has not been back, so I have
not run into it again. It might still be necessary,
when SAGE_TESTDIR is not set (and the user might use
sage -t before knowing what SAGE_TESTDIR is).



Also I want to script this build process, including
some local optional pacakges, and even an hg clone
and patch and sage -b clone, and rerun this on many
laptops for users who come to me. The user is usually
uid 1000, but it is more tricky to run the first
parts as that user, when I this is part of a larger
script already running as root to aptitude install
and customize a bunch of non-sage-related things.
I uistall and partition the image, next to or in or 
over windows, and run my script as root and hand it
over to them after many things including sage
is installed. So far just building as root has been easier
than guessing the uid and su-ing to that id to build
before coming back to root to copy the files in place.


regards,
Jan
-- 
   .~. 
   /V\     Jan Groenewald
  /( )\    www.aims.ac.za
  ^^-^^ 

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to