This doesn't at least look to be a regression, so much as a long term bug.
The offending path has always been a subpath of SAGE_ROOT since sage was
initially checked into a repository (it was SAGE_ROOT/data/extcode/octave
before). My guess is that if you are only experiencing issues with recent
versions of sage, is that there was some other change that is trying to
write to a file under that path.


On Sun, Mar 9, 2014 at 1:09 PM, William Stein <[email protected]> wrote:

> Hi,
>
>
> I install sage-6.x systemwide for https://cloud.sagemath.com.   Now it
> seems impossible for a normal user to use the octave interface (and
> probably many others), which is a _major_ regression:
>
>
> sage: octave.eval('rand(2)')
> Traceback (most recent call last):
>   File
> "/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/sage/interfaces/expect.py",
> line 1208, in eval
>     for L in code.split('\n') if L != ''])
>   File
> "/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/sage/interfaces/expect.py",
> line 813, in _eval_line
>     self._start()
>   File
> "/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/sage/interfaces/octave.py",
> line 285, in _start
>     Expect._start(self)
>   File
> "/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/sage/interfaces/expect.py",
> line 389, in _start
>     sage_makedirs(dir)
>   File
> "/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/sage/misc/misc.py",
> line 73, in sage_makedirs
>     os.makedirs(dir)
>   File "/usr/local/sage/sage-6.2/local/lib/python/os.py", line 150, in
> makedirs
>     makedirs(head, mode)
>   File "/usr/local/sage/sage-6.2/local/lib/python/os.py", line 157, in
> makedirs
>     mkdir(name, mode)
> OSError: [Errno 13] Permission denied:
> '/usr/local/sage/sage-6.2/local/share/sage/ext/octave'
>
>
> I was able to get things to work by doing
>
>    mkdir -p /usr/local/sage/sage-6.2/local/share/sage/ext/octave/user
>    chown a+rwx /usr/local/sage/sage-6.2/local/share/sage/ext/octave/user
>
> I particularly *HATE* the second chown -- yes, you must give write to
> everybody.
> This of means any user could just fill up that directory and bring down the
> system.
>
> Anyway, what happened?
>
>
>  -- William
>



-- 
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to