Opened 15 years ago

Closed 15 years ago

#2278 closed defect (fixed)

notebook -- when uploading a new worksheet be sure to set the permissions on any directories that are created to be readable by all

Reported by: William Stein Owned by: Kelly Boothby
Priority: major Milestone: sage-3.0.2
Component: notebook Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges


Hello William,

I spoke too soon ... I stated on the forum that it was fixed.
However, I just uploaded another worksheet called Graphing, and I'm
receiving the Permission Denied error again.


On Feb 22, 9:45 am, "William Stein" <> wrote:
- Hide quoted text -
> On Thu, Feb 21, 2008 at 9:09 PM, AprèsTech <> wrote:
> >  Hello,
> >  After uploading a worksheet from my PC to the server, I
> >  can't edit or evaluate cells within it.  I'm receiving the error
> >  message
> >  Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >  IOError: [Errno 13] Permission denied: '/home/server2/sage_notebook/
> >  worksheets/aprestech/4/code/'
> >  Did I do something wrong, or is this a bug?
> This is *definitely* a bug on my part.  I'll look into it immediately.
> If you still have this problem after you get this email, please
> respond and let me know.
> Also, can you get the bug to occur again by uploading another worksheet?
> This problem is caused by the too-strict in this case security model.  It can
> be fixed once for all if it is easily repeatable.
> William

Change History (1)

comment:1 Changed 15 years ago by William Stein

Resolution: fixed
Status: newclosed

In sage-3.0.1 already this line is around line 1370 of

        os.system('chmod -R a+rw "%s"'%absD)

That must do enough to set permissions as needed. I suspect this problem is either completely solved or was very special to some unix setup I had. Also, the user reporting the problem has been using the public notebook even recently (two months later) with no further complaints.

Note: See TracTickets for help on using tickets.