wrong permission in files installed by elliptic_curves-0.4+

14 views
Skip to first unread message

François Bissey

unread,
Mar 27, 2012, 8:34:37 PM3/27/12
to sage-devel
Hi,

Something I noticed with sage-on-gentoo but would also affect
anyone installing sage as root to make it available on the system.
In http://trac.sagemath.org/sage_trac/ticket/12644
the installation of ellcurves has been altered and I am not sure
how to fix it.

In elliptic_curves-0.3 we have the following permissions inside
$SAGE_DATA/ellcurves:
-rw-r--r-- 1 fbissey fbissey 1003K Mar 28 13:17 rank0
-rw-r--r-- 1 fbissey fbissey 1023K Mar 28 13:17 rank1
-rw-r--r-- 1 fbissey fbissey 71K Mar 28 13:17 rank2
-rw-r--r-- 1 fbissey fbissey 26K Mar 28 13:17 rank3
-rw-r--r-- 1 fbissey fbissey 31 Mar 28 13:17 rank4
-rw-r--r-- 1 fbissey fbissey 32 Mar 28 13:17 rank5
-rw-r--r-- 1 fbissey fbissey 38 Mar 28 13:17 rank6
-rw-r--r-- 1 fbissey fbissey 42 Mar 28 13:17 rank7
-rw-r--r-- 1 fbissey fbissey 45 Mar 28 13:17 rank8

In 0.5 and likely 0.4 where the relevant changes have been made (I think):
-rw------- 1 fbissey fbissey 1003K Mar 28 13:16 rank0
-rw------- 1 fbissey fbissey 1023K Mar 28 13:16 rank1
-rw------- 1 fbissey fbissey 71K Mar 28 13:16 rank2
-rw------- 1 fbissey fbissey 26K Mar 28 13:16 rank3
-rw-r--r-- 1 fbissey fbissey 31 Sep 11 2011 rank4
-rw-r--r-- 1 fbissey fbissey 32 Sep 11 2011 rank5
-rw-r--r-- 1 fbissey fbissey 38 Sep 11 2011 rank6
-rw-r--r-- 1 fbissey fbissey 42 Sep 11 2011 rank7
-rw-r--r-- 1 fbissey fbissey 45 Sep 11 2011 rank8

In the later case you will have obvious problem if the user using
the data is not the same than the one installing it. I noticed it
when dosctest started to fail with 5.0.beta10 because rank3
could not be opened by a normal user in sage-on-gentoo.

Francois

R. Andrew Ohana

unread,
Mar 27, 2012, 9:06:31 PM3/27/12
to sage-...@googlegroups.com
Sorry, this is my bad, did you open a ticket for this issue?

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

--
Andrew

François Bissey

unread,
Mar 27, 2012, 9:08:24 PM3/27/12
to sage-...@googlegroups.com
On Tue, 27 Mar 2012 18:06:31 R. Andrew Ohana wrote:
> Sorry, this is my bad, did you open a ticket for this issue?
>
Not, I am glad you seem to have an idea of what's going on.
If you open one I'll happilly review it.

Francois

R. Andrew Ohana

unread,
Mar 27, 2012, 9:15:17 PM3/27/12
to sage-...@googlegroups.com
This is now at http://trac.sagemath.org/sage_trac/ticket/12763, and
need review :).

François Bissey

unread,
Mar 27, 2012, 9:26:08 PM3/27/12
to sage-...@googlegroups.com
On Tue, 27 Mar 2012 18:15:17 R. Andrew Ohana wrote:
> This is now at http://trac.sagemath.org/sage_trac/ticket/12763, and
> need review :).
>
Done. Thanks for the quick fix.

Francois

Reply all
Reply to author
Forward
0 new messages