Hi

When I untar sage as root not all files are owned
as root. (This is after running make as root, but still)

0 r...@muizenberg:/usr/local/src/sage-4.4.3#ls -ln
total 30672
-rw-r--r--  1 1000 1000    71842 2010-06-06 07:43 COPYING.txt
drwxr-xr-x  8    0    0     4096 2010-06-06 09:26 data
drwxr-xr-x  4    0    0     4096 2010-06-06 08:51 devel
-rw-r--r--  1    0    0   107841 2010-06-06 09:49 dochtml.log
drwxr-xr-x 15    0    0     4096 2010-06-06 09:12 examples
-rw-r--r--  1    0    0 31120837 2010-06-06 09:26 install.log
drwxr-xr-x  2    0    0     4096 2010-06-06 07:43 ipython
drwxr-xr-x 12    0    0     4096 2010-06-06 09:16 local
-rw-r--r--  1 1000 1000     3032 2010-05-13 09:42 makefile
-rw-r--r--  1 1000 1000    10662 2010-06-06 07:43 README.txt
-rwxr-xr-x  1 1000 1000     1449 2010-02-11 18:56 sage
-rwxr-xr-x  1    0    0       38 2010-06-06 07:43 sage-python
-rw-r--r--  1 1000 1000     1622 2010-06-06 07:43 sage-README-osx.txt
drwxr-xr-x  6 1000 1000     4096 2010-06-06 07:43 spkg
drwxr-xr-x  2    0    0     4096 2010-06-06 07:43 tmp

I usually do

chown -R root.root /usr/local/src/sage*

but for system-wide installs is it not better that all
files be owned by root? Does this have to be taken care
of before the tarball is made? 

2.

I used to do chmod a+R /usr/local/src/sage*
to make sure all files are readable once they are owned by root.
What is best practice here?

0 r...@muizenberg:/usr/local/src/sage-4.4.3#find . -type f ! -perm 644 -a ! 
-perm 664 -a ! -perm 755 -a ! -perm 775 |wc -l
440
0 r...@muizenberg:/usr/local/src/sage-4.4.3#find . -type f ! -perm 644 -a ! 
-perm 664 -a ! -perm 755 -a ! -perm 775 -a ! -perm 640|wc -l
8
0 r...@muizenberg:/usr/local/src/sage-4.4.3#find . -type f ! -perm 644 -a ! 
-perm 664 -a ! -perm 755 -a ! -perm 775 -a ! -perm 640 -exec ls -l '{}' \;
-rwxr--r-- 1 root root 129 2010-06-06 08:02 ./local/bin/which_fortran
-rwxr-x--- 1 root root 1885 2010-06-06 09:13 
./local/lib/gap-4.4.12/terminfo/r/rxvt
-rwxr-x--- 1 root root 1533 2010-06-06 09:13 
./local/lib/gap-4.4.12/terminfo/c/cygwin
-rwxr-x--- 1 root root 2100 2010-06-06 09:13 
./local/lib/gap-4.4.12/terminfo/x/xterm
-r-xr-xr-x 1 root root 5547024 2010-06-06 07:49 ./local/lib/libpython2.6.so.1.0
-rw------- 1 root root 16384 2010-06-06 09:17 
./local/include/lcalc/Lexplicit_formula.h.swap.crap
-rw------- 1 root root 4251 2010-06-06 09:17 ./local/include/lcalc/Ldokchitser.h
-rw------- 1 root root 1604 2010-06-06 09:20 
./local/share/moin/data/plugin/parser/jsmath.py
0 r...@muizenberg:/usr/local/src/sage-4.4.3#

regards,
Jan

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

Reply via email to