On Mon, Oct 6, 2008 at 3:30 PM, Jason Grout <[EMAIL PROTECTED]> wrote:
>
> William Stein wrote:
>> On Mon, Oct 6, 2008 at 3:19 AM, Dan Drake <[EMAIL PROTECTED]> wrote:
>>> As I mentioned in another thread, I'm working up to having a public Sage
>>> server at my university. Reading through the notebook() documentation, I
>>> see:
>>>
>>>  server_pool -- (default: None), if given, should be a list like
>>>               ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]'], where
>>>               you have setup ssh keys so that typing
>>>                   ssh [EMAIL PROTECTED]
>>>               logs in without requiring a password, e.g., by typing
>>>               as the notebook server user
>>>                   cd; ssh-keygen -t rsa
>>>               then put ~/.ssh/id_rsa.pub as the file .ssh/authorized_keys2.
>>>               Note -- you have to get the permissions of files
>>>               and directories just right -- do a web search
>>>               for more details.
>>>
>>> I did a web search and found nothing but other people looking for details!
>>>
>>> I tried for a bit to figure out the permissions, but couldn't get things
>>> to work. Can someone explain how to set this up? I understand ssh keys
>>> and Unix file permissions and so on, but I don't know what the notebook
>>> server needs or wants with respect to them.
>>
>> If foo is a user in the server pool, you should be able to login
>> as the server user and type "ssh [EMAIL PROTECTED]" and have the
>> login work without having to explicitly type a password.
>>
>> Have you got the above to work and things still don't work?
>> If so, what doesn't work?
>>
>
> Okay, I just tried using the server_pool option.  I can ssh
> [EMAIL PROTECTED] from [EMAIL PROTECTED]  I can run the sage server
> without the server_pool option from the server account and successfully
> evaluate cells.  However, when the server_pool option gives
> [EMAIL PROTECTED] as the ssh login to use, when I try to evaluate a cell,
> I get an error like:
>
> Traceback (click to the left for traceback)
> ...
> IOError: [Errno 13] Permission denied:
> '/home/server/.sage/sage_notebook/worksheets/myuser/0/code/1.py'
>
> Does the server_pool option correctly account for the setting of
> permissions on the DOT_SAGE directory?  Is there something else going on
> here?
>

You should run a sage notebook that isn't in ~/.sage and
set the permissions of that directory so that other users
can read from it.  Otherwise, there is no way this can work.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to