On Tue, Dec 22, 2009 at 12:24 PM, Dr. David Kirkby
<[email protected]> wrote:
> William Stein wrote:
>> On Tue, Dec 22, 2009 at 11:06 AM, Dr. David Kirkby
>> <[email protected]> wrote:
>>> I see in the
>>>
>>> help(notebook)
>>>
>>> that one can have a list of accounts where password less ssh is permitted. 
>>> (i.e.
>>> accounts which have entries in /etc/passwd)
>>>
>>> How do those unix accounts relate to an Sage account set up by a user?
>>>
>>
>> There is *currently*  no relationship.  It would be cool if there were.
>
> Yes, I would have thought so too.
>
>>> If I create accounts on a unix system sage1, sage2 ... sage 10, and 100 
>>> people
>>> create user accounts (bar, foo, foobar ...etc), is there any sort of mapping
>>> between the two?
>>>
>>
>> Nope.  Not yet.
>
>
>>> Is there any advantage in having more user accounts on the machine, than the
>>> expected number of users of the server? If 1000 students will Sage 
>>> accounts, is
>>> it preferable for there to be 1000 unix accounts?
>>
>> No.  I would just make one other account for now.
>
> Thanks.
>
>>> Normally, with a web server, the server starts with root privileges (needed 
>>> as
>>> it runs on a port below 1024), then changes to another user (nobody, web, 
>>> apache
>>> or similar).
>>
>> I highly recommend *never* ever in a million billion years running the
>> sage notebook server as root.  That would be totally crazy.
>
> Yes agreed.
>
> But it's quite common for servers to *start* as root, then switch to another
> userid. A normal web server (Apache) must start as root, otherwise it could 
> not
> listen on port 80.
>
> Clearly this is an advantage to Sage using 8000, as you do not need root 
> access
> to listen on that port.
>
> One disadvantage of starting on port 8000 is that if there was an annoying
> little person with access to the system running Sage, he could write a simple
> program that opens on port 8000 and does nothing. That would stop Sage 
> starting
> on port 8000. (Unless Sage beat him to get port 8000 that is!)
>
> That's one advantage of using a port below 1024, so a normal user can't create
> something to listen on the port.
>
>>> cd /home/someuser
>>> su - someuser /home/someuser/sage-4.2/sage &
>>>
>>
>> That's a good idea.
>
> Does the password less ssh login offer any advantages over that?
>

Huge!  It means the worksheet processes are a different user (on a
different computer if you want) than the server processes, which is a
massive advantage.

> Does the Sage server on sage.math start automatically if sage.math is 
> rebooted?
>

There is no sage server on sage.math.

> If so, how do you start it?
>
>
>
>> William
>
>
>
>
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to